38112 lines
1.2 MiB
38112 lines
1.2 MiB
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
package schema
|
|
|
|
import (
|
|
"bytes"
|
|
"context"
|
|
"errors"
|
|
"fmt"
|
|
"strconv"
|
|
"sync"
|
|
"sync/atomic"
|
|
"time"
|
|
|
|
"github.com/99designs/gqlgen/graphql"
|
|
"github.com/99designs/gqlgen/graphql/introspection"
|
|
"github.com/getprobo/probo/pkg/coredata"
|
|
"github.com/getprobo/probo/pkg/gid"
|
|
"github.com/getprobo/probo/pkg/page"
|
|
"github.com/getprobo/probo/pkg/server/api/console/v1/types"
|
|
gqlparser "github.com/vektah/gqlparser/v2"
|
|
"github.com/vektah/gqlparser/v2/ast"
|
|
)
|
|
|
|
// region ************************** generated!.gotpl **************************
|
|
|
|
// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
|
|
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
|
|
return &executableSchema{
|
|
schema: cfg.Schema,
|
|
resolvers: cfg.Resolvers,
|
|
directives: cfg.Directives,
|
|
complexity: cfg.Complexity,
|
|
}
|
|
}
|
|
|
|
type Config struct {
|
|
Schema *ast.Schema
|
|
Resolvers ResolverRoot
|
|
Directives DirectiveRoot
|
|
Complexity ComplexityRoot
|
|
}
|
|
|
|
type ResolverRoot interface {
|
|
Control() ControlResolver
|
|
Evidence() EvidenceResolver
|
|
Framework() FrameworkResolver
|
|
Mesure() MesureResolver
|
|
Mutation() MutationResolver
|
|
Organization() OrganizationResolver
|
|
Policy() PolicyResolver
|
|
Query() QueryResolver
|
|
Risk() RiskResolver
|
|
Task() TaskResolver
|
|
User() UserResolver
|
|
Vendor() VendorResolver
|
|
VendorComplianceReport() VendorComplianceReportResolver
|
|
VendorRiskAssessment() VendorRiskAssessmentResolver
|
|
Viewer() ViewerResolver
|
|
}
|
|
|
|
type DirectiveRoot struct {
|
|
}
|
|
|
|
type ComplexityRoot struct {
|
|
AssignTaskPayload struct {
|
|
Task func(childComplexity int) int
|
|
}
|
|
|
|
ConfirmEmailPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
Connector struct {
|
|
CreatedAt func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
Type func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
ConnectorConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
ConnectorEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Control struct {
|
|
CreatedAt func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Mesures func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MesureOrderBy) int
|
|
Name func(childComplexity int) int
|
|
Policies func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.PolicyOrderBy) int
|
|
ReferenceID func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
ControlConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
ControlEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
CreateControlMesureMappingPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
CreateControlPolicyMappingPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
CreateEvidencePayload struct {
|
|
EvidenceEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateFrameworkPayload struct {
|
|
FrameworkEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateMesurePayload struct {
|
|
MesureEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateOrganizationPayload struct {
|
|
OrganizationEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreatePeoplePayload struct {
|
|
PeopleEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreatePolicyPayload struct {
|
|
PolicyEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateRiskMesureMappingPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
CreateRiskPayload struct {
|
|
RiskEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateRiskPolicyMappingPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
CreateTaskPayload struct {
|
|
TaskEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateVendorPayload struct {
|
|
VendorEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateVendorRiskAssessmentPayload struct {
|
|
VendorRiskAssessmentEdge func(childComplexity int) int
|
|
}
|
|
|
|
DeleteControlMesureMappingPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
DeleteControlPolicyMappingPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
DeleteEvidencePayload struct {
|
|
DeletedEvidenceID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteFrameworkPayload struct {
|
|
DeletedFrameworkID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteOrganizationPayload struct {
|
|
DeletedOrganizationID func(childComplexity int) int
|
|
}
|
|
|
|
DeletePeoplePayload struct {
|
|
DeletedPeopleID func(childComplexity int) int
|
|
}
|
|
|
|
DeletePolicyPayload struct {
|
|
DeletedPolicyID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteRiskMesureMappingPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
DeleteRiskPayload struct {
|
|
DeletedRiskID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteRiskPolicyMappingPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
DeleteTaskPayload struct {
|
|
DeletedTaskID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteVendorComplianceReportPayload struct {
|
|
DeletedVendorComplianceReportID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteVendorPayload struct {
|
|
DeletedVendorID func(childComplexity int) int
|
|
}
|
|
|
|
Evidence struct {
|
|
CreatedAt func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
FileURL func(childComplexity int) int
|
|
Filename func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
MimeType func(childComplexity int) int
|
|
Size func(childComplexity int) int
|
|
State func(childComplexity int) int
|
|
Type func(childComplexity int) int
|
|
URL func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
EvidenceConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
EvidenceEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Framework struct {
|
|
Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy) int
|
|
CreatedAt func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
FrameworkConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
FrameworkEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
FulfillEvidencePayload struct {
|
|
EvidenceEdge func(childComplexity int) int
|
|
}
|
|
|
|
ImportFrameworkPayload struct {
|
|
FrameworkEdge func(childComplexity int) int
|
|
}
|
|
|
|
ImportMesurePayload struct {
|
|
MesureEdges func(childComplexity int) int
|
|
}
|
|
|
|
InviteUserPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
Mesure struct {
|
|
Category func(childComplexity int) int
|
|
Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy) int
|
|
CreatedAt func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Importance func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
Risks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RiskOrderBy) int
|
|
State func(childComplexity int) int
|
|
Tasks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.TaskOrderBy) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
MesureConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
MesureEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Mutation struct {
|
|
AssignTask func(childComplexity int, input types.AssignTaskInput) int
|
|
ConfirmEmail func(childComplexity int, input types.ConfirmEmailInput) int
|
|
CreateControlMesureMapping func(childComplexity int, input types.CreateControlMesureMappingInput) int
|
|
CreateControlPolicyMapping func(childComplexity int, input types.CreateControlPolicyMappingInput) int
|
|
CreateEvidence func(childComplexity int, input types.CreateEvidenceInput) int
|
|
CreateFramework func(childComplexity int, input types.CreateFrameworkInput) int
|
|
CreateMesure func(childComplexity int, input types.CreateMesureInput) int
|
|
CreateOrganization func(childComplexity int, input types.CreateOrganizationInput) int
|
|
CreatePeople func(childComplexity int, input types.CreatePeopleInput) int
|
|
CreatePolicy func(childComplexity int, input types.CreatePolicyInput) int
|
|
CreateRisk func(childComplexity int, input types.CreateRiskInput) int
|
|
CreateRiskMesureMapping func(childComplexity int, input types.CreateRiskMesureMappingInput) int
|
|
CreateRiskPolicyMapping func(childComplexity int, input types.CreateRiskPolicyMappingInput) int
|
|
CreateTask func(childComplexity int, input types.CreateTaskInput) int
|
|
CreateVendor func(childComplexity int, input types.CreateVendorInput) int
|
|
CreateVendorRiskAssessment func(childComplexity int, input types.CreateVendorRiskAssessmentInput) int
|
|
DeleteControlMesureMapping func(childComplexity int, input types.DeleteControlMesureMappingInput) int
|
|
DeleteControlPolicyMapping func(childComplexity int, input types.DeleteControlPolicyMappingInput) int
|
|
DeleteEvidence func(childComplexity int, input types.DeleteEvidenceInput) int
|
|
DeleteFramework func(childComplexity int, input types.DeleteFrameworkInput) int
|
|
DeleteOrganization func(childComplexity int, input types.DeleteOrganizationInput) int
|
|
DeletePeople func(childComplexity int, input types.DeletePeopleInput) int
|
|
DeletePolicy func(childComplexity int, input types.DeletePolicyInput) int
|
|
DeleteRisk func(childComplexity int, input types.DeleteRiskInput) int
|
|
DeleteRiskMesureMapping func(childComplexity int, input types.DeleteRiskMesureMappingInput) int
|
|
DeleteRiskPolicyMapping func(childComplexity int, input types.DeleteRiskPolicyMappingInput) int
|
|
DeleteTask func(childComplexity int, input types.DeleteTaskInput) int
|
|
DeleteVendor func(childComplexity int, input types.DeleteVendorInput) int
|
|
DeleteVendorComplianceReport func(childComplexity int, input types.DeleteVendorComplianceReportInput) int
|
|
FulfillEvidence func(childComplexity int, input types.FulfillEvidenceInput) int
|
|
ImportFramework func(childComplexity int, input types.ImportFrameworkInput) int
|
|
ImportMesure func(childComplexity int, input types.ImportMesureInput) int
|
|
InviteUser func(childComplexity int, input types.InviteUserInput) int
|
|
RemoveUser func(childComplexity int, input types.RemoveUserInput) int
|
|
RequestEvidence func(childComplexity int, input types.RequestEvidenceInput) int
|
|
UnassignTask func(childComplexity int, input types.UnassignTaskInput) int
|
|
UpdateFramework func(childComplexity int, input types.UpdateFrameworkInput) int
|
|
UpdateMesure func(childComplexity int, input types.UpdateMesureInput) int
|
|
UpdateOrganization func(childComplexity int, input types.UpdateOrganizationInput) int
|
|
UpdatePeople func(childComplexity int, input types.UpdatePeopleInput) int
|
|
UpdatePolicy func(childComplexity int, input types.UpdatePolicyInput) int
|
|
UpdateRisk func(childComplexity int, input types.UpdateRiskInput) int
|
|
UpdateTask func(childComplexity int, input types.UpdateTaskInput) int
|
|
UpdateVendor func(childComplexity int, input types.UpdateVendorInput) int
|
|
UploadVendorComplianceReport func(childComplexity int, input types.UploadVendorComplianceReportInput) int
|
|
}
|
|
|
|
Organization struct {
|
|
Connectors func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ConnectorOrder) int
|
|
CreatedAt func(childComplexity int) int
|
|
Frameworks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.FrameworkOrderBy) int
|
|
ID func(childComplexity int) int
|
|
LogoURL func(childComplexity int) int
|
|
Mesures func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MesureOrderBy) int
|
|
Name func(childComplexity int) int
|
|
Peoples func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.PeopleOrderBy) int
|
|
Policies func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.PolicyOrderBy) int
|
|
Risks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RiskOrderBy) int
|
|
UpdatedAt func(childComplexity int) int
|
|
Users func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.UserOrderBy) int
|
|
Vendors func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy) int
|
|
}
|
|
|
|
OrganizationConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
OrganizationEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
PageInfo struct {
|
|
EndCursor func(childComplexity int) int
|
|
HasNextPage func(childComplexity int) int
|
|
HasPreviousPage func(childComplexity int) int
|
|
StartCursor func(childComplexity int) int
|
|
}
|
|
|
|
People struct {
|
|
AdditionalEmailAddresses func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
FullName func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Kind func(childComplexity int) int
|
|
PrimaryEmailAddress func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
PeopleConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
PeopleEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Policy struct {
|
|
Content func(childComplexity int) int
|
|
Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy) int
|
|
CreatedAt func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
Owner func(childComplexity int) int
|
|
ReviewDate func(childComplexity int) int
|
|
Status func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
PolicyConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
PolicyEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Query struct {
|
|
Node func(childComplexity int, id gid.GID) int
|
|
Viewer func(childComplexity int) int
|
|
}
|
|
|
|
RemoveUserPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
RequestEvidencePayload struct {
|
|
EvidenceEdge func(childComplexity int) int
|
|
}
|
|
|
|
Risk struct {
|
|
Category func(childComplexity int) int
|
|
Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy) int
|
|
CreatedAt func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
InherentImpact func(childComplexity int) int
|
|
InherentLikelihood func(childComplexity int) int
|
|
InherentSeverity func(childComplexity int) int
|
|
Mesures func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MesureOrderBy) int
|
|
Name func(childComplexity int) int
|
|
Note func(childComplexity int) int
|
|
Owner func(childComplexity int) int
|
|
Policies func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.PolicyOrderBy) int
|
|
ResidualImpact func(childComplexity int) int
|
|
ResidualLikelihood func(childComplexity int) int
|
|
ResidualSeverity func(childComplexity int) int
|
|
Treatment func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
RiskConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
RiskEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Session struct {
|
|
ExpiresAt func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
}
|
|
|
|
Task struct {
|
|
AssignedTo func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
Evidences func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.EvidenceOrderBy) int
|
|
ID func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
State func(childComplexity int) int
|
|
TimeEstimate func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
TaskConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
TaskEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
UnassignTaskPayload struct {
|
|
Task func(childComplexity int) int
|
|
}
|
|
|
|
UpdateFrameworkPayload struct {
|
|
Framework func(childComplexity int) int
|
|
}
|
|
|
|
UpdateMesurePayload struct {
|
|
Mesure func(childComplexity int) int
|
|
}
|
|
|
|
UpdateOrganizationPayload struct {
|
|
Organization func(childComplexity int) int
|
|
}
|
|
|
|
UpdatePeoplePayload struct {
|
|
People func(childComplexity int) int
|
|
}
|
|
|
|
UpdatePolicyPayload struct {
|
|
Policy func(childComplexity int) int
|
|
}
|
|
|
|
UpdateRiskPayload struct {
|
|
Risk func(childComplexity int) int
|
|
}
|
|
|
|
UpdateTaskPayload struct {
|
|
Task func(childComplexity int) int
|
|
}
|
|
|
|
UpdateVendorPayload struct {
|
|
Vendor func(childComplexity int) int
|
|
}
|
|
|
|
UploadVendorComplianceReportPayload struct {
|
|
VendorComplianceReportEdge func(childComplexity int) int
|
|
}
|
|
|
|
User struct {
|
|
CreatedAt func(childComplexity int) int
|
|
Email func(childComplexity int) int
|
|
FullName func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
People func(childComplexity int, organizationID gid.GID) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
UserConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
UserEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Vendor struct {
|
|
BusinessOwner func(childComplexity int) int
|
|
Certifications func(childComplexity int) int
|
|
ComplianceReports func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorComplianceReportOrderBy) int
|
|
CreatedAt func(childComplexity int) int
|
|
DataProcessingAgreementURL func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
HeadquarterAddress func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
LegalName func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
PrivacyPolicyURL func(childComplexity int) int
|
|
RiskAssessments func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorRiskAssessmentOrder) int
|
|
SecurityOwner func(childComplexity int) int
|
|
SecurityPageURL func(childComplexity int) int
|
|
ServiceLevelAgreementURL func(childComplexity int) int
|
|
ServiceStartAt func(childComplexity int) int
|
|
ServiceTerminationAt func(childComplexity int) int
|
|
StatusPageURL func(childComplexity int) int
|
|
TermsOfServiceURL func(childComplexity int) int
|
|
TrustPageURL func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
WebsiteURL func(childComplexity int) int
|
|
}
|
|
|
|
VendorComplianceReport struct {
|
|
CreatedAt func(childComplexity int) int
|
|
FileSize func(childComplexity int) int
|
|
FileURL func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
ReportDate func(childComplexity int) int
|
|
ReportName func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
ValidUntil func(childComplexity int) int
|
|
Vendor func(childComplexity int) int
|
|
}
|
|
|
|
VendorComplianceReportConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
VendorComplianceReportEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
VendorConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
VendorEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
VendorRiskAssessment struct {
|
|
AssessedAt func(childComplexity int) int
|
|
AssessedBy func(childComplexity int) int
|
|
BusinessImpact func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
DataSensitivity func(childComplexity int) int
|
|
ExpiresAt func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Notes func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
Vendor func(childComplexity int) int
|
|
}
|
|
|
|
VendorRiskAssessmentConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
VendorRiskAssessmentEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Viewer struct {
|
|
ID func(childComplexity int) int
|
|
Organizations func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrganizationOrder) int
|
|
User func(childComplexity int) int
|
|
}
|
|
}
|
|
|
|
type ControlResolver interface {
|
|
Mesures(ctx context.Context, obj *types.Control, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MesureOrderBy) (*types.MesureConnection, error)
|
|
Policies(ctx context.Context, obj *types.Control, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.PolicyOrderBy) (*types.PolicyConnection, error)
|
|
}
|
|
type EvidenceResolver interface {
|
|
FileURL(ctx context.Context, obj *types.Evidence) (*string, error)
|
|
}
|
|
type FrameworkResolver interface {
|
|
Controls(ctx context.Context, obj *types.Framework, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy) (*types.ControlConnection, error)
|
|
}
|
|
type MesureResolver interface {
|
|
Tasks(ctx context.Context, obj *types.Mesure, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.TaskOrderBy) (*types.TaskConnection, error)
|
|
Risks(ctx context.Context, obj *types.Mesure, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RiskOrderBy) (*types.RiskConnection, error)
|
|
Controls(ctx context.Context, obj *types.Mesure, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy) (*types.ControlConnection, error)
|
|
}
|
|
type MutationResolver interface {
|
|
CreateOrganization(ctx context.Context, input types.CreateOrganizationInput) (*types.CreateOrganizationPayload, error)
|
|
UpdateOrganization(ctx context.Context, input types.UpdateOrganizationInput) (*types.UpdateOrganizationPayload, error)
|
|
DeleteOrganization(ctx context.Context, input types.DeleteOrganizationInput) (*types.DeleteOrganizationPayload, error)
|
|
ConfirmEmail(ctx context.Context, input types.ConfirmEmailInput) (*types.ConfirmEmailPayload, error)
|
|
InviteUser(ctx context.Context, input types.InviteUserInput) (*types.InviteUserPayload, error)
|
|
RemoveUser(ctx context.Context, input types.RemoveUserInput) (*types.RemoveUserPayload, error)
|
|
CreatePeople(ctx context.Context, input types.CreatePeopleInput) (*types.CreatePeoplePayload, error)
|
|
UpdatePeople(ctx context.Context, input types.UpdatePeopleInput) (*types.UpdatePeoplePayload, error)
|
|
DeletePeople(ctx context.Context, input types.DeletePeopleInput) (*types.DeletePeoplePayload, error)
|
|
CreateVendor(ctx context.Context, input types.CreateVendorInput) (*types.CreateVendorPayload, error)
|
|
UpdateVendor(ctx context.Context, input types.UpdateVendorInput) (*types.UpdateVendorPayload, error)
|
|
DeleteVendor(ctx context.Context, input types.DeleteVendorInput) (*types.DeleteVendorPayload, error)
|
|
CreateFramework(ctx context.Context, input types.CreateFrameworkInput) (*types.CreateFrameworkPayload, error)
|
|
UpdateFramework(ctx context.Context, input types.UpdateFrameworkInput) (*types.UpdateFrameworkPayload, error)
|
|
ImportFramework(ctx context.Context, input types.ImportFrameworkInput) (*types.ImportFrameworkPayload, error)
|
|
DeleteFramework(ctx context.Context, input types.DeleteFrameworkInput) (*types.DeleteFrameworkPayload, error)
|
|
CreateMesure(ctx context.Context, input types.CreateMesureInput) (*types.CreateMesurePayload, error)
|
|
UpdateMesure(ctx context.Context, input types.UpdateMesureInput) (*types.UpdateMesurePayload, error)
|
|
ImportMesure(ctx context.Context, input types.ImportMesureInput) (*types.ImportMesurePayload, error)
|
|
CreateControlMesureMapping(ctx context.Context, input types.CreateControlMesureMappingInput) (*types.CreateControlMesureMappingPayload, error)
|
|
CreateControlPolicyMapping(ctx context.Context, input types.CreateControlPolicyMappingInput) (*types.CreateControlPolicyMappingPayload, error)
|
|
DeleteControlMesureMapping(ctx context.Context, input types.DeleteControlMesureMappingInput) (*types.DeleteControlMesureMappingPayload, error)
|
|
DeleteControlPolicyMapping(ctx context.Context, input types.DeleteControlPolicyMappingInput) (*types.DeleteControlPolicyMappingPayload, error)
|
|
CreateTask(ctx context.Context, input types.CreateTaskInput) (*types.CreateTaskPayload, error)
|
|
UpdateTask(ctx context.Context, input types.UpdateTaskInput) (*types.UpdateTaskPayload, error)
|
|
DeleteTask(ctx context.Context, input types.DeleteTaskInput) (*types.DeleteTaskPayload, error)
|
|
AssignTask(ctx context.Context, input types.AssignTaskInput) (*types.AssignTaskPayload, error)
|
|
UnassignTask(ctx context.Context, input types.UnassignTaskInput) (*types.UnassignTaskPayload, error)
|
|
CreateRisk(ctx context.Context, input types.CreateRiskInput) (*types.CreateRiskPayload, error)
|
|
UpdateRisk(ctx context.Context, input types.UpdateRiskInput) (*types.UpdateRiskPayload, error)
|
|
DeleteRisk(ctx context.Context, input types.DeleteRiskInput) (*types.DeleteRiskPayload, error)
|
|
CreateRiskMesureMapping(ctx context.Context, input types.CreateRiskMesureMappingInput) (*types.CreateRiskMesureMappingPayload, error)
|
|
DeleteRiskMesureMapping(ctx context.Context, input types.DeleteRiskMesureMappingInput) (*types.DeleteRiskMesureMappingPayload, error)
|
|
CreateRiskPolicyMapping(ctx context.Context, input types.CreateRiskPolicyMappingInput) (*types.CreateRiskPolicyMappingPayload, error)
|
|
DeleteRiskPolicyMapping(ctx context.Context, input types.DeleteRiskPolicyMappingInput) (*types.DeleteRiskPolicyMappingPayload, error)
|
|
RequestEvidence(ctx context.Context, input types.RequestEvidenceInput) (*types.RequestEvidencePayload, error)
|
|
FulfillEvidence(ctx context.Context, input types.FulfillEvidenceInput) (*types.FulfillEvidencePayload, error)
|
|
CreateEvidence(ctx context.Context, input types.CreateEvidenceInput) (*types.CreateEvidencePayload, error)
|
|
DeleteEvidence(ctx context.Context, input types.DeleteEvidenceInput) (*types.DeleteEvidencePayload, error)
|
|
UploadVendorComplianceReport(ctx context.Context, input types.UploadVendorComplianceReportInput) (*types.UploadVendorComplianceReportPayload, error)
|
|
DeleteVendorComplianceReport(ctx context.Context, input types.DeleteVendorComplianceReportInput) (*types.DeleteVendorComplianceReportPayload, error)
|
|
CreatePolicy(ctx context.Context, input types.CreatePolicyInput) (*types.CreatePolicyPayload, error)
|
|
UpdatePolicy(ctx context.Context, input types.UpdatePolicyInput) (*types.UpdatePolicyPayload, error)
|
|
DeletePolicy(ctx context.Context, input types.DeletePolicyInput) (*types.DeletePolicyPayload, error)
|
|
CreateVendorRiskAssessment(ctx context.Context, input types.CreateVendorRiskAssessmentInput) (*types.CreateVendorRiskAssessmentPayload, error)
|
|
}
|
|
type OrganizationResolver interface {
|
|
LogoURL(ctx context.Context, obj *types.Organization) (*string, error)
|
|
Users(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.UserOrderBy) (*types.UserConnection, error)
|
|
Connectors(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ConnectorOrder) (*types.ConnectorConnection, error)
|
|
Frameworks(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.FrameworkOrderBy) (*types.FrameworkConnection, error)
|
|
Vendors(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy) (*types.VendorConnection, error)
|
|
Peoples(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.PeopleOrderBy) (*types.PeopleConnection, error)
|
|
Policies(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.PolicyOrderBy) (*types.PolicyConnection, error)
|
|
Mesures(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MesureOrderBy) (*types.MesureConnection, error)
|
|
Risks(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RiskOrderBy) (*types.RiskConnection, error)
|
|
}
|
|
type PolicyResolver interface {
|
|
Owner(ctx context.Context, obj *types.Policy) (*types.People, error)
|
|
Controls(ctx context.Context, obj *types.Policy, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy) (*types.ControlConnection, error)
|
|
}
|
|
type QueryResolver interface {
|
|
Node(ctx context.Context, id gid.GID) (types.Node, error)
|
|
Viewer(ctx context.Context) (*types.Viewer, error)
|
|
}
|
|
type RiskResolver interface {
|
|
Owner(ctx context.Context, obj *types.Risk) (*types.People, error)
|
|
Mesures(ctx context.Context, obj *types.Risk, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MesureOrderBy) (*types.MesureConnection, error)
|
|
Policies(ctx context.Context, obj *types.Risk, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.PolicyOrderBy) (*types.PolicyConnection, error)
|
|
Controls(ctx context.Context, obj *types.Risk, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy) (*types.ControlConnection, error)
|
|
}
|
|
type TaskResolver interface {
|
|
AssignedTo(ctx context.Context, obj *types.Task) (*types.People, error)
|
|
Evidences(ctx context.Context, obj *types.Task, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.EvidenceOrderBy) (*types.EvidenceConnection, error)
|
|
}
|
|
type UserResolver interface {
|
|
People(ctx context.Context, obj *types.User, organizationID gid.GID) (*types.People, error)
|
|
}
|
|
type VendorResolver interface {
|
|
ComplianceReports(ctx context.Context, obj *types.Vendor, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorComplianceReportOrderBy) (*types.VendorComplianceReportConnection, error)
|
|
RiskAssessments(ctx context.Context, obj *types.Vendor, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorRiskAssessmentOrder) (*types.VendorRiskAssessmentConnection, error)
|
|
BusinessOwner(ctx context.Context, obj *types.Vendor) (*types.People, error)
|
|
SecurityOwner(ctx context.Context, obj *types.Vendor) (*types.People, error)
|
|
}
|
|
type VendorComplianceReportResolver interface {
|
|
Vendor(ctx context.Context, obj *types.VendorComplianceReport) (*types.Vendor, error)
|
|
|
|
FileURL(ctx context.Context, obj *types.VendorComplianceReport) (string, error)
|
|
}
|
|
type VendorRiskAssessmentResolver interface {
|
|
Vendor(ctx context.Context, obj *types.VendorRiskAssessment) (*types.Vendor, error)
|
|
|
|
AssessedBy(ctx context.Context, obj *types.VendorRiskAssessment) (*types.People, error)
|
|
}
|
|
type ViewerResolver interface {
|
|
Organizations(ctx context.Context, obj *types.Viewer, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrganizationOrder) (*types.OrganizationConnection, error)
|
|
}
|
|
|
|
type executableSchema struct {
|
|
schema *ast.Schema
|
|
resolvers ResolverRoot
|
|
directives DirectiveRoot
|
|
complexity ComplexityRoot
|
|
}
|
|
|
|
func (e *executableSchema) Schema() *ast.Schema {
|
|
if e.schema != nil {
|
|
return e.schema
|
|
}
|
|
return parsedSchema
|
|
}
|
|
|
|
func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) {
|
|
ec := executionContext{nil, e, 0, 0, nil}
|
|
_ = ec
|
|
switch typeName + "." + field {
|
|
|
|
case "AssignTaskPayload.task":
|
|
if e.complexity.AssignTaskPayload.Task == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.AssignTaskPayload.Task(childComplexity), true
|
|
|
|
case "ConfirmEmailPayload.success":
|
|
if e.complexity.ConfirmEmailPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ConfirmEmailPayload.Success(childComplexity), true
|
|
|
|
case "Connector.createdAt":
|
|
if e.complexity.Connector.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Connector.CreatedAt(childComplexity), true
|
|
|
|
case "Connector.id":
|
|
if e.complexity.Connector.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Connector.ID(childComplexity), true
|
|
|
|
case "Connector.name":
|
|
if e.complexity.Connector.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Connector.Name(childComplexity), true
|
|
|
|
case "Connector.type":
|
|
if e.complexity.Connector.Type == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Connector.Type(childComplexity), true
|
|
|
|
case "Connector.updatedAt":
|
|
if e.complexity.Connector.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Connector.UpdatedAt(childComplexity), true
|
|
|
|
case "ConnectorConnection.edges":
|
|
if e.complexity.ConnectorConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ConnectorConnection.Edges(childComplexity), true
|
|
|
|
case "ConnectorConnection.pageInfo":
|
|
if e.complexity.ConnectorConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ConnectorConnection.PageInfo(childComplexity), true
|
|
|
|
case "ConnectorEdge.cursor":
|
|
if e.complexity.ConnectorEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ConnectorEdge.Cursor(childComplexity), true
|
|
|
|
case "ConnectorEdge.node":
|
|
if e.complexity.ConnectorEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ConnectorEdge.Node(childComplexity), true
|
|
|
|
case "Control.createdAt":
|
|
if e.complexity.Control.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Control.CreatedAt(childComplexity), true
|
|
|
|
case "Control.description":
|
|
if e.complexity.Control.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Control.Description(childComplexity), true
|
|
|
|
case "Control.id":
|
|
if e.complexity.Control.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Control.ID(childComplexity), true
|
|
|
|
case "Control.mesures":
|
|
if e.complexity.Control.Mesures == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Control_mesures_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Control.Mesures(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.MesureOrderBy)), true
|
|
|
|
case "Control.name":
|
|
if e.complexity.Control.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Control.Name(childComplexity), true
|
|
|
|
case "Control.policies":
|
|
if e.complexity.Control.Policies == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Control_policies_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Control.Policies(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.PolicyOrderBy)), true
|
|
|
|
case "Control.referenceId":
|
|
if e.complexity.Control.ReferenceID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Control.ReferenceID(childComplexity), true
|
|
|
|
case "Control.updatedAt":
|
|
if e.complexity.Control.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Control.UpdatedAt(childComplexity), true
|
|
|
|
case "ControlConnection.edges":
|
|
if e.complexity.ControlConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ControlConnection.Edges(childComplexity), true
|
|
|
|
case "ControlConnection.pageInfo":
|
|
if e.complexity.ControlConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ControlConnection.PageInfo(childComplexity), true
|
|
|
|
case "ControlEdge.cursor":
|
|
if e.complexity.ControlEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ControlEdge.Cursor(childComplexity), true
|
|
|
|
case "ControlEdge.node":
|
|
if e.complexity.ControlEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ControlEdge.Node(childComplexity), true
|
|
|
|
case "CreateControlMesureMappingPayload.success":
|
|
if e.complexity.CreateControlMesureMappingPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateControlMesureMappingPayload.Success(childComplexity), true
|
|
|
|
case "CreateControlPolicyMappingPayload.success":
|
|
if e.complexity.CreateControlPolicyMappingPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateControlPolicyMappingPayload.Success(childComplexity), true
|
|
|
|
case "CreateEvidencePayload.evidenceEdge":
|
|
if e.complexity.CreateEvidencePayload.EvidenceEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateEvidencePayload.EvidenceEdge(childComplexity), true
|
|
|
|
case "CreateFrameworkPayload.frameworkEdge":
|
|
if e.complexity.CreateFrameworkPayload.FrameworkEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateFrameworkPayload.FrameworkEdge(childComplexity), true
|
|
|
|
case "CreateMesurePayload.mesureEdge":
|
|
if e.complexity.CreateMesurePayload.MesureEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateMesurePayload.MesureEdge(childComplexity), true
|
|
|
|
case "CreateOrganizationPayload.organizationEdge":
|
|
if e.complexity.CreateOrganizationPayload.OrganizationEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateOrganizationPayload.OrganizationEdge(childComplexity), true
|
|
|
|
case "CreatePeoplePayload.peopleEdge":
|
|
if e.complexity.CreatePeoplePayload.PeopleEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreatePeoplePayload.PeopleEdge(childComplexity), true
|
|
|
|
case "CreatePolicyPayload.policyEdge":
|
|
if e.complexity.CreatePolicyPayload.PolicyEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreatePolicyPayload.PolicyEdge(childComplexity), true
|
|
|
|
case "CreateRiskMesureMappingPayload.success":
|
|
if e.complexity.CreateRiskMesureMappingPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateRiskMesureMappingPayload.Success(childComplexity), true
|
|
|
|
case "CreateRiskPayload.riskEdge":
|
|
if e.complexity.CreateRiskPayload.RiskEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateRiskPayload.RiskEdge(childComplexity), true
|
|
|
|
case "CreateRiskPolicyMappingPayload.success":
|
|
if e.complexity.CreateRiskPolicyMappingPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateRiskPolicyMappingPayload.Success(childComplexity), true
|
|
|
|
case "CreateTaskPayload.taskEdge":
|
|
if e.complexity.CreateTaskPayload.TaskEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateTaskPayload.TaskEdge(childComplexity), true
|
|
|
|
case "CreateVendorPayload.vendorEdge":
|
|
if e.complexity.CreateVendorPayload.VendorEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateVendorPayload.VendorEdge(childComplexity), true
|
|
|
|
case "CreateVendorRiskAssessmentPayload.vendorRiskAssessmentEdge":
|
|
if e.complexity.CreateVendorRiskAssessmentPayload.VendorRiskAssessmentEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateVendorRiskAssessmentPayload.VendorRiskAssessmentEdge(childComplexity), true
|
|
|
|
case "DeleteControlMesureMappingPayload.success":
|
|
if e.complexity.DeleteControlMesureMappingPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteControlMesureMappingPayload.Success(childComplexity), true
|
|
|
|
case "DeleteControlPolicyMappingPayload.success":
|
|
if e.complexity.DeleteControlPolicyMappingPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteControlPolicyMappingPayload.Success(childComplexity), true
|
|
|
|
case "DeleteEvidencePayload.deletedEvidenceId":
|
|
if e.complexity.DeleteEvidencePayload.DeletedEvidenceID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteEvidencePayload.DeletedEvidenceID(childComplexity), true
|
|
|
|
case "DeleteFrameworkPayload.deletedFrameworkId":
|
|
if e.complexity.DeleteFrameworkPayload.DeletedFrameworkID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteFrameworkPayload.DeletedFrameworkID(childComplexity), true
|
|
|
|
case "DeleteOrganizationPayload.deletedOrganizationId":
|
|
if e.complexity.DeleteOrganizationPayload.DeletedOrganizationID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteOrganizationPayload.DeletedOrganizationID(childComplexity), true
|
|
|
|
case "DeletePeoplePayload.deletedPeopleId":
|
|
if e.complexity.DeletePeoplePayload.DeletedPeopleID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeletePeoplePayload.DeletedPeopleID(childComplexity), true
|
|
|
|
case "DeletePolicyPayload.deletedPolicyId":
|
|
if e.complexity.DeletePolicyPayload.DeletedPolicyID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeletePolicyPayload.DeletedPolicyID(childComplexity), true
|
|
|
|
case "DeleteRiskMesureMappingPayload.success":
|
|
if e.complexity.DeleteRiskMesureMappingPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteRiskMesureMappingPayload.Success(childComplexity), true
|
|
|
|
case "DeleteRiskPayload.deletedRiskId":
|
|
if e.complexity.DeleteRiskPayload.DeletedRiskID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteRiskPayload.DeletedRiskID(childComplexity), true
|
|
|
|
case "DeleteRiskPolicyMappingPayload.success":
|
|
if e.complexity.DeleteRiskPolicyMappingPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteRiskPolicyMappingPayload.Success(childComplexity), true
|
|
|
|
case "DeleteTaskPayload.deletedTaskId":
|
|
if e.complexity.DeleteTaskPayload.DeletedTaskID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteTaskPayload.DeletedTaskID(childComplexity), true
|
|
|
|
case "DeleteVendorComplianceReportPayload.deletedVendorComplianceReportId":
|
|
if e.complexity.DeleteVendorComplianceReportPayload.DeletedVendorComplianceReportID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteVendorComplianceReportPayload.DeletedVendorComplianceReportID(childComplexity), true
|
|
|
|
case "DeleteVendorPayload.deletedVendorId":
|
|
if e.complexity.DeleteVendorPayload.DeletedVendorID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteVendorPayload.DeletedVendorID(childComplexity), true
|
|
|
|
case "Evidence.createdAt":
|
|
if e.complexity.Evidence.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Evidence.CreatedAt(childComplexity), true
|
|
|
|
case "Evidence.description":
|
|
if e.complexity.Evidence.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Evidence.Description(childComplexity), true
|
|
|
|
case "Evidence.fileUrl":
|
|
if e.complexity.Evidence.FileURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Evidence.FileURL(childComplexity), true
|
|
|
|
case "Evidence.filename":
|
|
if e.complexity.Evidence.Filename == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Evidence.Filename(childComplexity), true
|
|
|
|
case "Evidence.id":
|
|
if e.complexity.Evidence.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Evidence.ID(childComplexity), true
|
|
|
|
case "Evidence.mimeType":
|
|
if e.complexity.Evidence.MimeType == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Evidence.MimeType(childComplexity), true
|
|
|
|
case "Evidence.size":
|
|
if e.complexity.Evidence.Size == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Evidence.Size(childComplexity), true
|
|
|
|
case "Evidence.state":
|
|
if e.complexity.Evidence.State == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Evidence.State(childComplexity), true
|
|
|
|
case "Evidence.type":
|
|
if e.complexity.Evidence.Type == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Evidence.Type(childComplexity), true
|
|
|
|
case "Evidence.url":
|
|
if e.complexity.Evidence.URL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Evidence.URL(childComplexity), true
|
|
|
|
case "Evidence.updatedAt":
|
|
if e.complexity.Evidence.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Evidence.UpdatedAt(childComplexity), true
|
|
|
|
case "EvidenceConnection.edges":
|
|
if e.complexity.EvidenceConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.EvidenceConnection.Edges(childComplexity), true
|
|
|
|
case "EvidenceConnection.pageInfo":
|
|
if e.complexity.EvidenceConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.EvidenceConnection.PageInfo(childComplexity), true
|
|
|
|
case "EvidenceEdge.cursor":
|
|
if e.complexity.EvidenceEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.EvidenceEdge.Cursor(childComplexity), true
|
|
|
|
case "EvidenceEdge.node":
|
|
if e.complexity.EvidenceEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.EvidenceEdge.Node(childComplexity), true
|
|
|
|
case "Framework.controls":
|
|
if e.complexity.Framework.Controls == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Framework_controls_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Framework.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy)), true
|
|
|
|
case "Framework.createdAt":
|
|
if e.complexity.Framework.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Framework.CreatedAt(childComplexity), true
|
|
|
|
case "Framework.description":
|
|
if e.complexity.Framework.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Framework.Description(childComplexity), true
|
|
|
|
case "Framework.id":
|
|
if e.complexity.Framework.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Framework.ID(childComplexity), true
|
|
|
|
case "Framework.name":
|
|
if e.complexity.Framework.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Framework.Name(childComplexity), true
|
|
|
|
case "Framework.updatedAt":
|
|
if e.complexity.Framework.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Framework.UpdatedAt(childComplexity), true
|
|
|
|
case "FrameworkConnection.edges":
|
|
if e.complexity.FrameworkConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.FrameworkConnection.Edges(childComplexity), true
|
|
|
|
case "FrameworkConnection.pageInfo":
|
|
if e.complexity.FrameworkConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.FrameworkConnection.PageInfo(childComplexity), true
|
|
|
|
case "FrameworkEdge.cursor":
|
|
if e.complexity.FrameworkEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.FrameworkEdge.Cursor(childComplexity), true
|
|
|
|
case "FrameworkEdge.node":
|
|
if e.complexity.FrameworkEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.FrameworkEdge.Node(childComplexity), true
|
|
|
|
case "FulfillEvidencePayload.evidenceEdge":
|
|
if e.complexity.FulfillEvidencePayload.EvidenceEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.FulfillEvidencePayload.EvidenceEdge(childComplexity), true
|
|
|
|
case "ImportFrameworkPayload.frameworkEdge":
|
|
if e.complexity.ImportFrameworkPayload.FrameworkEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ImportFrameworkPayload.FrameworkEdge(childComplexity), true
|
|
|
|
case "ImportMesurePayload.mesureEdges":
|
|
if e.complexity.ImportMesurePayload.MesureEdges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ImportMesurePayload.MesureEdges(childComplexity), true
|
|
|
|
case "InviteUserPayload.success":
|
|
if e.complexity.InviteUserPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.InviteUserPayload.Success(childComplexity), true
|
|
|
|
case "Mesure.category":
|
|
if e.complexity.Mesure.Category == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Mesure.Category(childComplexity), true
|
|
|
|
case "Mesure.controls":
|
|
if e.complexity.Mesure.Controls == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mesure_controls_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mesure.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy)), true
|
|
|
|
case "Mesure.createdAt":
|
|
if e.complexity.Mesure.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Mesure.CreatedAt(childComplexity), true
|
|
|
|
case "Mesure.description":
|
|
if e.complexity.Mesure.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Mesure.Description(childComplexity), true
|
|
|
|
case "Mesure.id":
|
|
if e.complexity.Mesure.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Mesure.ID(childComplexity), true
|
|
|
|
case "Mesure.importance":
|
|
if e.complexity.Mesure.Importance == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Mesure.Importance(childComplexity), true
|
|
|
|
case "Mesure.name":
|
|
if e.complexity.Mesure.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Mesure.Name(childComplexity), true
|
|
|
|
case "Mesure.risks":
|
|
if e.complexity.Mesure.Risks == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mesure_risks_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mesure.Risks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.RiskOrderBy)), true
|
|
|
|
case "Mesure.state":
|
|
if e.complexity.Mesure.State == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Mesure.State(childComplexity), true
|
|
|
|
case "Mesure.tasks":
|
|
if e.complexity.Mesure.Tasks == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mesure_tasks_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mesure.Tasks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.TaskOrderBy)), true
|
|
|
|
case "Mesure.updatedAt":
|
|
if e.complexity.Mesure.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Mesure.UpdatedAt(childComplexity), true
|
|
|
|
case "MesureConnection.edges":
|
|
if e.complexity.MesureConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.MesureConnection.Edges(childComplexity), true
|
|
|
|
case "MesureConnection.pageInfo":
|
|
if e.complexity.MesureConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.MesureConnection.PageInfo(childComplexity), true
|
|
|
|
case "MesureEdge.cursor":
|
|
if e.complexity.MesureEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.MesureEdge.Cursor(childComplexity), true
|
|
|
|
case "MesureEdge.node":
|
|
if e.complexity.MesureEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.MesureEdge.Node(childComplexity), true
|
|
|
|
case "Mutation.assignTask":
|
|
if e.complexity.Mutation.AssignTask == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_assignTask_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.AssignTask(childComplexity, args["input"].(types.AssignTaskInput)), true
|
|
|
|
case "Mutation.confirmEmail":
|
|
if e.complexity.Mutation.ConfirmEmail == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_confirmEmail_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.ConfirmEmail(childComplexity, args["input"].(types.ConfirmEmailInput)), true
|
|
|
|
case "Mutation.createControlMesureMapping":
|
|
if e.complexity.Mutation.CreateControlMesureMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createControlMesureMapping_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateControlMesureMapping(childComplexity, args["input"].(types.CreateControlMesureMappingInput)), true
|
|
|
|
case "Mutation.createControlPolicyMapping":
|
|
if e.complexity.Mutation.CreateControlPolicyMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createControlPolicyMapping_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateControlPolicyMapping(childComplexity, args["input"].(types.CreateControlPolicyMappingInput)), true
|
|
|
|
case "Mutation.createEvidence":
|
|
if e.complexity.Mutation.CreateEvidence == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createEvidence_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateEvidence(childComplexity, args["input"].(types.CreateEvidenceInput)), true
|
|
|
|
case "Mutation.createFramework":
|
|
if e.complexity.Mutation.CreateFramework == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createFramework_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateFramework(childComplexity, args["input"].(types.CreateFrameworkInput)), true
|
|
|
|
case "Mutation.createMesure":
|
|
if e.complexity.Mutation.CreateMesure == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createMesure_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateMesure(childComplexity, args["input"].(types.CreateMesureInput)), true
|
|
|
|
case "Mutation.createOrganization":
|
|
if e.complexity.Mutation.CreateOrganization == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createOrganization_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateOrganization(childComplexity, args["input"].(types.CreateOrganizationInput)), true
|
|
|
|
case "Mutation.createPeople":
|
|
if e.complexity.Mutation.CreatePeople == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createPeople_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreatePeople(childComplexity, args["input"].(types.CreatePeopleInput)), true
|
|
|
|
case "Mutation.createPolicy":
|
|
if e.complexity.Mutation.CreatePolicy == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createPolicy_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreatePolicy(childComplexity, args["input"].(types.CreatePolicyInput)), true
|
|
|
|
case "Mutation.createRisk":
|
|
if e.complexity.Mutation.CreateRisk == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createRisk_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateRisk(childComplexity, args["input"].(types.CreateRiskInput)), true
|
|
|
|
case "Mutation.createRiskMesureMapping":
|
|
if e.complexity.Mutation.CreateRiskMesureMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createRiskMesureMapping_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateRiskMesureMapping(childComplexity, args["input"].(types.CreateRiskMesureMappingInput)), true
|
|
|
|
case "Mutation.createRiskPolicyMapping":
|
|
if e.complexity.Mutation.CreateRiskPolicyMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createRiskPolicyMapping_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateRiskPolicyMapping(childComplexity, args["input"].(types.CreateRiskPolicyMappingInput)), true
|
|
|
|
case "Mutation.createTask":
|
|
if e.complexity.Mutation.CreateTask == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createTask_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateTask(childComplexity, args["input"].(types.CreateTaskInput)), true
|
|
|
|
case "Mutation.createVendor":
|
|
if e.complexity.Mutation.CreateVendor == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createVendor_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateVendor(childComplexity, args["input"].(types.CreateVendorInput)), true
|
|
|
|
case "Mutation.createVendorRiskAssessment":
|
|
if e.complexity.Mutation.CreateVendorRiskAssessment == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createVendorRiskAssessment_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateVendorRiskAssessment(childComplexity, args["input"].(types.CreateVendorRiskAssessmentInput)), true
|
|
|
|
case "Mutation.deleteControlMesureMapping":
|
|
if e.complexity.Mutation.DeleteControlMesureMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteControlMesureMapping_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteControlMesureMapping(childComplexity, args["input"].(types.DeleteControlMesureMappingInput)), true
|
|
|
|
case "Mutation.deleteControlPolicyMapping":
|
|
if e.complexity.Mutation.DeleteControlPolicyMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteControlPolicyMapping_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteControlPolicyMapping(childComplexity, args["input"].(types.DeleteControlPolicyMappingInput)), true
|
|
|
|
case "Mutation.deleteEvidence":
|
|
if e.complexity.Mutation.DeleteEvidence == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteEvidence_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteEvidence(childComplexity, args["input"].(types.DeleteEvidenceInput)), true
|
|
|
|
case "Mutation.deleteFramework":
|
|
if e.complexity.Mutation.DeleteFramework == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteFramework_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteFramework(childComplexity, args["input"].(types.DeleteFrameworkInput)), true
|
|
|
|
case "Mutation.deleteOrganization":
|
|
if e.complexity.Mutation.DeleteOrganization == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteOrganization_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteOrganization(childComplexity, args["input"].(types.DeleteOrganizationInput)), true
|
|
|
|
case "Mutation.deletePeople":
|
|
if e.complexity.Mutation.DeletePeople == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deletePeople_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeletePeople(childComplexity, args["input"].(types.DeletePeopleInput)), true
|
|
|
|
case "Mutation.deletePolicy":
|
|
if e.complexity.Mutation.DeletePolicy == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deletePolicy_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeletePolicy(childComplexity, args["input"].(types.DeletePolicyInput)), true
|
|
|
|
case "Mutation.deleteRisk":
|
|
if e.complexity.Mutation.DeleteRisk == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteRisk_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteRisk(childComplexity, args["input"].(types.DeleteRiskInput)), true
|
|
|
|
case "Mutation.deleteRiskMesureMapping":
|
|
if e.complexity.Mutation.DeleteRiskMesureMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteRiskMesureMapping_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteRiskMesureMapping(childComplexity, args["input"].(types.DeleteRiskMesureMappingInput)), true
|
|
|
|
case "Mutation.deleteRiskPolicyMapping":
|
|
if e.complexity.Mutation.DeleteRiskPolicyMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteRiskPolicyMapping_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteRiskPolicyMapping(childComplexity, args["input"].(types.DeleteRiskPolicyMappingInput)), true
|
|
|
|
case "Mutation.deleteTask":
|
|
if e.complexity.Mutation.DeleteTask == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteTask_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteTask(childComplexity, args["input"].(types.DeleteTaskInput)), true
|
|
|
|
case "Mutation.deleteVendor":
|
|
if e.complexity.Mutation.DeleteVendor == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteVendor_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteVendor(childComplexity, args["input"].(types.DeleteVendorInput)), true
|
|
|
|
case "Mutation.deleteVendorComplianceReport":
|
|
if e.complexity.Mutation.DeleteVendorComplianceReport == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteVendorComplianceReport_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteVendorComplianceReport(childComplexity, args["input"].(types.DeleteVendorComplianceReportInput)), true
|
|
|
|
case "Mutation.fulfillEvidence":
|
|
if e.complexity.Mutation.FulfillEvidence == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_fulfillEvidence_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.FulfillEvidence(childComplexity, args["input"].(types.FulfillEvidenceInput)), true
|
|
|
|
case "Mutation.importFramework":
|
|
if e.complexity.Mutation.ImportFramework == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_importFramework_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.ImportFramework(childComplexity, args["input"].(types.ImportFrameworkInput)), true
|
|
|
|
case "Mutation.importMesure":
|
|
if e.complexity.Mutation.ImportMesure == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_importMesure_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.ImportMesure(childComplexity, args["input"].(types.ImportMesureInput)), true
|
|
|
|
case "Mutation.inviteUser":
|
|
if e.complexity.Mutation.InviteUser == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_inviteUser_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.InviteUser(childComplexity, args["input"].(types.InviteUserInput)), true
|
|
|
|
case "Mutation.removeUser":
|
|
if e.complexity.Mutation.RemoveUser == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_removeUser_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.RemoveUser(childComplexity, args["input"].(types.RemoveUserInput)), true
|
|
|
|
case "Mutation.requestEvidence":
|
|
if e.complexity.Mutation.RequestEvidence == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_requestEvidence_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.RequestEvidence(childComplexity, args["input"].(types.RequestEvidenceInput)), true
|
|
|
|
case "Mutation.unassignTask":
|
|
if e.complexity.Mutation.UnassignTask == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_unassignTask_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UnassignTask(childComplexity, args["input"].(types.UnassignTaskInput)), true
|
|
|
|
case "Mutation.updateFramework":
|
|
if e.complexity.Mutation.UpdateFramework == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateFramework_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateFramework(childComplexity, args["input"].(types.UpdateFrameworkInput)), true
|
|
|
|
case "Mutation.updateMesure":
|
|
if e.complexity.Mutation.UpdateMesure == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateMesure_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateMesure(childComplexity, args["input"].(types.UpdateMesureInput)), true
|
|
|
|
case "Mutation.updateOrganization":
|
|
if e.complexity.Mutation.UpdateOrganization == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateOrganization_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateOrganization(childComplexity, args["input"].(types.UpdateOrganizationInput)), true
|
|
|
|
case "Mutation.updatePeople":
|
|
if e.complexity.Mutation.UpdatePeople == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updatePeople_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdatePeople(childComplexity, args["input"].(types.UpdatePeopleInput)), true
|
|
|
|
case "Mutation.updatePolicy":
|
|
if e.complexity.Mutation.UpdatePolicy == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updatePolicy_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdatePolicy(childComplexity, args["input"].(types.UpdatePolicyInput)), true
|
|
|
|
case "Mutation.updateRisk":
|
|
if e.complexity.Mutation.UpdateRisk == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateRisk_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateRisk(childComplexity, args["input"].(types.UpdateRiskInput)), true
|
|
|
|
case "Mutation.updateTask":
|
|
if e.complexity.Mutation.UpdateTask == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateTask_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateTask(childComplexity, args["input"].(types.UpdateTaskInput)), true
|
|
|
|
case "Mutation.updateVendor":
|
|
if e.complexity.Mutation.UpdateVendor == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateVendor_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateVendor(childComplexity, args["input"].(types.UpdateVendorInput)), true
|
|
|
|
case "Mutation.uploadVendorComplianceReport":
|
|
if e.complexity.Mutation.UploadVendorComplianceReport == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_uploadVendorComplianceReport_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UploadVendorComplianceReport(childComplexity, args["input"].(types.UploadVendorComplianceReportInput)), true
|
|
|
|
case "Organization.connectors":
|
|
if e.complexity.Organization.Connectors == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_connectors_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Connectors(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ConnectorOrder)), true
|
|
|
|
case "Organization.createdAt":
|
|
if e.complexity.Organization.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Organization.CreatedAt(childComplexity), true
|
|
|
|
case "Organization.frameworks":
|
|
if e.complexity.Organization.Frameworks == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_frameworks_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Frameworks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.FrameworkOrderBy)), true
|
|
|
|
case "Organization.id":
|
|
if e.complexity.Organization.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Organization.ID(childComplexity), true
|
|
|
|
case "Organization.logoUrl":
|
|
if e.complexity.Organization.LogoURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Organization.LogoURL(childComplexity), true
|
|
|
|
case "Organization.mesures":
|
|
if e.complexity.Organization.Mesures == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_mesures_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Mesures(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.MesureOrderBy)), true
|
|
|
|
case "Organization.name":
|
|
if e.complexity.Organization.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Organization.Name(childComplexity), true
|
|
|
|
case "Organization.peoples":
|
|
if e.complexity.Organization.Peoples == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_peoples_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Peoples(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.PeopleOrderBy)), true
|
|
|
|
case "Organization.policies":
|
|
if e.complexity.Organization.Policies == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_policies_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Policies(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.PolicyOrderBy)), true
|
|
|
|
case "Organization.risks":
|
|
if e.complexity.Organization.Risks == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_risks_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Risks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.RiskOrderBy)), true
|
|
|
|
case "Organization.updatedAt":
|
|
if e.complexity.Organization.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Organization.UpdatedAt(childComplexity), true
|
|
|
|
case "Organization.users":
|
|
if e.complexity.Organization.Users == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_users_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Users(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.UserOrderBy)), true
|
|
|
|
case "Organization.vendors":
|
|
if e.complexity.Organization.Vendors == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_vendors_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Vendors(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorOrderBy)), true
|
|
|
|
case "OrganizationConnection.edges":
|
|
if e.complexity.OrganizationConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.OrganizationConnection.Edges(childComplexity), true
|
|
|
|
case "OrganizationConnection.pageInfo":
|
|
if e.complexity.OrganizationConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.OrganizationConnection.PageInfo(childComplexity), true
|
|
|
|
case "OrganizationEdge.cursor":
|
|
if e.complexity.OrganizationEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.OrganizationEdge.Cursor(childComplexity), true
|
|
|
|
case "OrganizationEdge.node":
|
|
if e.complexity.OrganizationEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.OrganizationEdge.Node(childComplexity), true
|
|
|
|
case "PageInfo.endCursor":
|
|
if e.complexity.PageInfo.EndCursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PageInfo.EndCursor(childComplexity), true
|
|
|
|
case "PageInfo.hasNextPage":
|
|
if e.complexity.PageInfo.HasNextPage == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PageInfo.HasNextPage(childComplexity), true
|
|
|
|
case "PageInfo.hasPreviousPage":
|
|
if e.complexity.PageInfo.HasPreviousPage == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PageInfo.HasPreviousPage(childComplexity), true
|
|
|
|
case "PageInfo.startCursor":
|
|
if e.complexity.PageInfo.StartCursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PageInfo.StartCursor(childComplexity), true
|
|
|
|
case "People.additionalEmailAddresses":
|
|
if e.complexity.People.AdditionalEmailAddresses == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.People.AdditionalEmailAddresses(childComplexity), true
|
|
|
|
case "People.createdAt":
|
|
if e.complexity.People.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.People.CreatedAt(childComplexity), true
|
|
|
|
case "People.fullName":
|
|
if e.complexity.People.FullName == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.People.FullName(childComplexity), true
|
|
|
|
case "People.id":
|
|
if e.complexity.People.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.People.ID(childComplexity), true
|
|
|
|
case "People.kind":
|
|
if e.complexity.People.Kind == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.People.Kind(childComplexity), true
|
|
|
|
case "People.primaryEmailAddress":
|
|
if e.complexity.People.PrimaryEmailAddress == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.People.PrimaryEmailAddress(childComplexity), true
|
|
|
|
case "People.updatedAt":
|
|
if e.complexity.People.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.People.UpdatedAt(childComplexity), true
|
|
|
|
case "PeopleConnection.edges":
|
|
if e.complexity.PeopleConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PeopleConnection.Edges(childComplexity), true
|
|
|
|
case "PeopleConnection.pageInfo":
|
|
if e.complexity.PeopleConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PeopleConnection.PageInfo(childComplexity), true
|
|
|
|
case "PeopleEdge.cursor":
|
|
if e.complexity.PeopleEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PeopleEdge.Cursor(childComplexity), true
|
|
|
|
case "PeopleEdge.node":
|
|
if e.complexity.PeopleEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PeopleEdge.Node(childComplexity), true
|
|
|
|
case "Policy.content":
|
|
if e.complexity.Policy.Content == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Policy.Content(childComplexity), true
|
|
|
|
case "Policy.controls":
|
|
if e.complexity.Policy.Controls == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Policy_controls_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Policy.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy)), true
|
|
|
|
case "Policy.createdAt":
|
|
if e.complexity.Policy.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Policy.CreatedAt(childComplexity), true
|
|
|
|
case "Policy.id":
|
|
if e.complexity.Policy.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Policy.ID(childComplexity), true
|
|
|
|
case "Policy.name":
|
|
if e.complexity.Policy.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Policy.Name(childComplexity), true
|
|
|
|
case "Policy.owner":
|
|
if e.complexity.Policy.Owner == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Policy.Owner(childComplexity), true
|
|
|
|
case "Policy.reviewDate":
|
|
if e.complexity.Policy.ReviewDate == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Policy.ReviewDate(childComplexity), true
|
|
|
|
case "Policy.status":
|
|
if e.complexity.Policy.Status == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Policy.Status(childComplexity), true
|
|
|
|
case "Policy.updatedAt":
|
|
if e.complexity.Policy.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Policy.UpdatedAt(childComplexity), true
|
|
|
|
case "PolicyConnection.edges":
|
|
if e.complexity.PolicyConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PolicyConnection.Edges(childComplexity), true
|
|
|
|
case "PolicyConnection.pageInfo":
|
|
if e.complexity.PolicyConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PolicyConnection.PageInfo(childComplexity), true
|
|
|
|
case "PolicyEdge.cursor":
|
|
if e.complexity.PolicyEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PolicyEdge.Cursor(childComplexity), true
|
|
|
|
case "PolicyEdge.node":
|
|
if e.complexity.PolicyEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PolicyEdge.Node(childComplexity), true
|
|
|
|
case "Query.node":
|
|
if e.complexity.Query.Node == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Query_node_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Query.Node(childComplexity, args["id"].(gid.GID)), true
|
|
|
|
case "Query.viewer":
|
|
if e.complexity.Query.Viewer == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Query.Viewer(childComplexity), true
|
|
|
|
case "RemoveUserPayload.success":
|
|
if e.complexity.RemoveUserPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.RemoveUserPayload.Success(childComplexity), true
|
|
|
|
case "RequestEvidencePayload.evidenceEdge":
|
|
if e.complexity.RequestEvidencePayload.EvidenceEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.RequestEvidencePayload.EvidenceEdge(childComplexity), true
|
|
|
|
case "Risk.category":
|
|
if e.complexity.Risk.Category == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.Category(childComplexity), true
|
|
|
|
case "Risk.controls":
|
|
if e.complexity.Risk.Controls == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Risk_controls_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Risk.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy)), true
|
|
|
|
case "Risk.createdAt":
|
|
if e.complexity.Risk.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.CreatedAt(childComplexity), true
|
|
|
|
case "Risk.description":
|
|
if e.complexity.Risk.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.Description(childComplexity), true
|
|
|
|
case "Risk.id":
|
|
if e.complexity.Risk.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.ID(childComplexity), true
|
|
|
|
case "Risk.inherentImpact":
|
|
if e.complexity.Risk.InherentImpact == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.InherentImpact(childComplexity), true
|
|
|
|
case "Risk.inherentLikelihood":
|
|
if e.complexity.Risk.InherentLikelihood == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.InherentLikelihood(childComplexity), true
|
|
|
|
case "Risk.inherentSeverity":
|
|
if e.complexity.Risk.InherentSeverity == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.InherentSeverity(childComplexity), true
|
|
|
|
case "Risk.mesures":
|
|
if e.complexity.Risk.Mesures == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Risk_mesures_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Risk.Mesures(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.MesureOrderBy)), true
|
|
|
|
case "Risk.name":
|
|
if e.complexity.Risk.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.Name(childComplexity), true
|
|
|
|
case "Risk.note":
|
|
if e.complexity.Risk.Note == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.Note(childComplexity), true
|
|
|
|
case "Risk.owner":
|
|
if e.complexity.Risk.Owner == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.Owner(childComplexity), true
|
|
|
|
case "Risk.policies":
|
|
if e.complexity.Risk.Policies == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Risk_policies_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Risk.Policies(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.PolicyOrderBy)), true
|
|
|
|
case "Risk.residualImpact":
|
|
if e.complexity.Risk.ResidualImpact == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.ResidualImpact(childComplexity), true
|
|
|
|
case "Risk.residualLikelihood":
|
|
if e.complexity.Risk.ResidualLikelihood == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.ResidualLikelihood(childComplexity), true
|
|
|
|
case "Risk.residualSeverity":
|
|
if e.complexity.Risk.ResidualSeverity == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.ResidualSeverity(childComplexity), true
|
|
|
|
case "Risk.treatment":
|
|
if e.complexity.Risk.Treatment == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.Treatment(childComplexity), true
|
|
|
|
case "Risk.updatedAt":
|
|
if e.complexity.Risk.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.UpdatedAt(childComplexity), true
|
|
|
|
case "RiskConnection.edges":
|
|
if e.complexity.RiskConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.RiskConnection.Edges(childComplexity), true
|
|
|
|
case "RiskConnection.pageInfo":
|
|
if e.complexity.RiskConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.RiskConnection.PageInfo(childComplexity), true
|
|
|
|
case "RiskEdge.cursor":
|
|
if e.complexity.RiskEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.RiskEdge.Cursor(childComplexity), true
|
|
|
|
case "RiskEdge.node":
|
|
if e.complexity.RiskEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.RiskEdge.Node(childComplexity), true
|
|
|
|
case "Session.expiresAt":
|
|
if e.complexity.Session.ExpiresAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Session.ExpiresAt(childComplexity), true
|
|
|
|
case "Session.id":
|
|
if e.complexity.Session.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Session.ID(childComplexity), true
|
|
|
|
case "Task.assignedTo":
|
|
if e.complexity.Task.AssignedTo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Task.AssignedTo(childComplexity), true
|
|
|
|
case "Task.createdAt":
|
|
if e.complexity.Task.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Task.CreatedAt(childComplexity), true
|
|
|
|
case "Task.description":
|
|
if e.complexity.Task.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Task.Description(childComplexity), true
|
|
|
|
case "Task.evidences":
|
|
if e.complexity.Task.Evidences == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Task_evidences_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Task.Evidences(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.EvidenceOrderBy)), true
|
|
|
|
case "Task.id":
|
|
if e.complexity.Task.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Task.ID(childComplexity), true
|
|
|
|
case "Task.name":
|
|
if e.complexity.Task.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Task.Name(childComplexity), true
|
|
|
|
case "Task.state":
|
|
if e.complexity.Task.State == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Task.State(childComplexity), true
|
|
|
|
case "Task.timeEstimate":
|
|
if e.complexity.Task.TimeEstimate == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Task.TimeEstimate(childComplexity), true
|
|
|
|
case "Task.updatedAt":
|
|
if e.complexity.Task.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Task.UpdatedAt(childComplexity), true
|
|
|
|
case "TaskConnection.edges":
|
|
if e.complexity.TaskConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TaskConnection.Edges(childComplexity), true
|
|
|
|
case "TaskConnection.pageInfo":
|
|
if e.complexity.TaskConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TaskConnection.PageInfo(childComplexity), true
|
|
|
|
case "TaskEdge.cursor":
|
|
if e.complexity.TaskEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TaskEdge.Cursor(childComplexity), true
|
|
|
|
case "TaskEdge.node":
|
|
if e.complexity.TaskEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TaskEdge.Node(childComplexity), true
|
|
|
|
case "UnassignTaskPayload.task":
|
|
if e.complexity.UnassignTaskPayload.Task == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UnassignTaskPayload.Task(childComplexity), true
|
|
|
|
case "UpdateFrameworkPayload.framework":
|
|
if e.complexity.UpdateFrameworkPayload.Framework == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateFrameworkPayload.Framework(childComplexity), true
|
|
|
|
case "UpdateMesurePayload.mesure":
|
|
if e.complexity.UpdateMesurePayload.Mesure == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateMesurePayload.Mesure(childComplexity), true
|
|
|
|
case "UpdateOrganizationPayload.organization":
|
|
if e.complexity.UpdateOrganizationPayload.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateOrganizationPayload.Organization(childComplexity), true
|
|
|
|
case "UpdatePeoplePayload.people":
|
|
if e.complexity.UpdatePeoplePayload.People == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdatePeoplePayload.People(childComplexity), true
|
|
|
|
case "UpdatePolicyPayload.policy":
|
|
if e.complexity.UpdatePolicyPayload.Policy == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdatePolicyPayload.Policy(childComplexity), true
|
|
|
|
case "UpdateRiskPayload.risk":
|
|
if e.complexity.UpdateRiskPayload.Risk == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateRiskPayload.Risk(childComplexity), true
|
|
|
|
case "UpdateTaskPayload.task":
|
|
if e.complexity.UpdateTaskPayload.Task == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateTaskPayload.Task(childComplexity), true
|
|
|
|
case "UpdateVendorPayload.vendor":
|
|
if e.complexity.UpdateVendorPayload.Vendor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateVendorPayload.Vendor(childComplexity), true
|
|
|
|
case "UploadVendorComplianceReportPayload.vendorComplianceReportEdge":
|
|
if e.complexity.UploadVendorComplianceReportPayload.VendorComplianceReportEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UploadVendorComplianceReportPayload.VendorComplianceReportEdge(childComplexity), true
|
|
|
|
case "User.createdAt":
|
|
if e.complexity.User.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.User.CreatedAt(childComplexity), true
|
|
|
|
case "User.email":
|
|
if e.complexity.User.Email == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.User.Email(childComplexity), true
|
|
|
|
case "User.fullName":
|
|
if e.complexity.User.FullName == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.User.FullName(childComplexity), true
|
|
|
|
case "User.id":
|
|
if e.complexity.User.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.User.ID(childComplexity), true
|
|
|
|
case "User.people":
|
|
if e.complexity.User.People == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_User_people_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.User.People(childComplexity, args["organizationId"].(gid.GID)), true
|
|
|
|
case "User.updatedAt":
|
|
if e.complexity.User.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.User.UpdatedAt(childComplexity), true
|
|
|
|
case "UserConnection.edges":
|
|
if e.complexity.UserConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UserConnection.Edges(childComplexity), true
|
|
|
|
case "UserConnection.pageInfo":
|
|
if e.complexity.UserConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UserConnection.PageInfo(childComplexity), true
|
|
|
|
case "UserEdge.cursor":
|
|
if e.complexity.UserEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UserEdge.Cursor(childComplexity), true
|
|
|
|
case "UserEdge.node":
|
|
if e.complexity.UserEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UserEdge.Node(childComplexity), true
|
|
|
|
case "Vendor.businessOwner":
|
|
if e.complexity.Vendor.BusinessOwner == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.BusinessOwner(childComplexity), true
|
|
|
|
case "Vendor.certifications":
|
|
if e.complexity.Vendor.Certifications == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.Certifications(childComplexity), true
|
|
|
|
case "Vendor.complianceReports":
|
|
if e.complexity.Vendor.ComplianceReports == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Vendor_complianceReports_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Vendor.ComplianceReports(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorComplianceReportOrderBy)), true
|
|
|
|
case "Vendor.createdAt":
|
|
if e.complexity.Vendor.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.CreatedAt(childComplexity), true
|
|
|
|
case "Vendor.dataProcessingAgreementUrl":
|
|
if e.complexity.Vendor.DataProcessingAgreementURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.DataProcessingAgreementURL(childComplexity), true
|
|
|
|
case "Vendor.description":
|
|
if e.complexity.Vendor.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.Description(childComplexity), true
|
|
|
|
case "Vendor.headquarterAddress":
|
|
if e.complexity.Vendor.HeadquarterAddress == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.HeadquarterAddress(childComplexity), true
|
|
|
|
case "Vendor.id":
|
|
if e.complexity.Vendor.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.ID(childComplexity), true
|
|
|
|
case "Vendor.legalName":
|
|
if e.complexity.Vendor.LegalName == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.LegalName(childComplexity), true
|
|
|
|
case "Vendor.name":
|
|
if e.complexity.Vendor.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.Name(childComplexity), true
|
|
|
|
case "Vendor.privacyPolicyUrl":
|
|
if e.complexity.Vendor.PrivacyPolicyURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.PrivacyPolicyURL(childComplexity), true
|
|
|
|
case "Vendor.riskAssessments":
|
|
if e.complexity.Vendor.RiskAssessments == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Vendor_riskAssessments_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Vendor.RiskAssessments(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorRiskAssessmentOrder)), true
|
|
|
|
case "Vendor.securityOwner":
|
|
if e.complexity.Vendor.SecurityOwner == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.SecurityOwner(childComplexity), true
|
|
|
|
case "Vendor.securityPageUrl":
|
|
if e.complexity.Vendor.SecurityPageURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.SecurityPageURL(childComplexity), true
|
|
|
|
case "Vendor.serviceLevelAgreementUrl":
|
|
if e.complexity.Vendor.ServiceLevelAgreementURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.ServiceLevelAgreementURL(childComplexity), true
|
|
|
|
case "Vendor.serviceStartAt":
|
|
if e.complexity.Vendor.ServiceStartAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.ServiceStartAt(childComplexity), true
|
|
|
|
case "Vendor.serviceTerminationAt":
|
|
if e.complexity.Vendor.ServiceTerminationAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.ServiceTerminationAt(childComplexity), true
|
|
|
|
case "Vendor.statusPageUrl":
|
|
if e.complexity.Vendor.StatusPageURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.StatusPageURL(childComplexity), true
|
|
|
|
case "Vendor.termsOfServiceUrl":
|
|
if e.complexity.Vendor.TermsOfServiceURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.TermsOfServiceURL(childComplexity), true
|
|
|
|
case "Vendor.trustPageUrl":
|
|
if e.complexity.Vendor.TrustPageURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.TrustPageURL(childComplexity), true
|
|
|
|
case "Vendor.updatedAt":
|
|
if e.complexity.Vendor.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.UpdatedAt(childComplexity), true
|
|
|
|
case "Vendor.websiteUrl":
|
|
if e.complexity.Vendor.WebsiteURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.WebsiteURL(childComplexity), true
|
|
|
|
case "VendorComplianceReport.createdAt":
|
|
if e.complexity.VendorComplianceReport.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorComplianceReport.CreatedAt(childComplexity), true
|
|
|
|
case "VendorComplianceReport.fileSize":
|
|
if e.complexity.VendorComplianceReport.FileSize == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorComplianceReport.FileSize(childComplexity), true
|
|
|
|
case "VendorComplianceReport.fileUrl":
|
|
if e.complexity.VendorComplianceReport.FileURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorComplianceReport.FileURL(childComplexity), true
|
|
|
|
case "VendorComplianceReport.id":
|
|
if e.complexity.VendorComplianceReport.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorComplianceReport.ID(childComplexity), true
|
|
|
|
case "VendorComplianceReport.reportDate":
|
|
if e.complexity.VendorComplianceReport.ReportDate == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorComplianceReport.ReportDate(childComplexity), true
|
|
|
|
case "VendorComplianceReport.reportName":
|
|
if e.complexity.VendorComplianceReport.ReportName == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorComplianceReport.ReportName(childComplexity), true
|
|
|
|
case "VendorComplianceReport.updatedAt":
|
|
if e.complexity.VendorComplianceReport.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorComplianceReport.UpdatedAt(childComplexity), true
|
|
|
|
case "VendorComplianceReport.validUntil":
|
|
if e.complexity.VendorComplianceReport.ValidUntil == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorComplianceReport.ValidUntil(childComplexity), true
|
|
|
|
case "VendorComplianceReport.vendor":
|
|
if e.complexity.VendorComplianceReport.Vendor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorComplianceReport.Vendor(childComplexity), true
|
|
|
|
case "VendorComplianceReportConnection.edges":
|
|
if e.complexity.VendorComplianceReportConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorComplianceReportConnection.Edges(childComplexity), true
|
|
|
|
case "VendorComplianceReportConnection.pageInfo":
|
|
if e.complexity.VendorComplianceReportConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorComplianceReportConnection.PageInfo(childComplexity), true
|
|
|
|
case "VendorComplianceReportEdge.cursor":
|
|
if e.complexity.VendorComplianceReportEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorComplianceReportEdge.Cursor(childComplexity), true
|
|
|
|
case "VendorComplianceReportEdge.node":
|
|
if e.complexity.VendorComplianceReportEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorComplianceReportEdge.Node(childComplexity), true
|
|
|
|
case "VendorConnection.edges":
|
|
if e.complexity.VendorConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorConnection.Edges(childComplexity), true
|
|
|
|
case "VendorConnection.pageInfo":
|
|
if e.complexity.VendorConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorConnection.PageInfo(childComplexity), true
|
|
|
|
case "VendorEdge.cursor":
|
|
if e.complexity.VendorEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorEdge.Cursor(childComplexity), true
|
|
|
|
case "VendorEdge.node":
|
|
if e.complexity.VendorEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorEdge.Node(childComplexity), true
|
|
|
|
case "VendorRiskAssessment.assessedAt":
|
|
if e.complexity.VendorRiskAssessment.AssessedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessment.AssessedAt(childComplexity), true
|
|
|
|
case "VendorRiskAssessment.assessedBy":
|
|
if e.complexity.VendorRiskAssessment.AssessedBy == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessment.AssessedBy(childComplexity), true
|
|
|
|
case "VendorRiskAssessment.businessImpact":
|
|
if e.complexity.VendorRiskAssessment.BusinessImpact == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessment.BusinessImpact(childComplexity), true
|
|
|
|
case "VendorRiskAssessment.createdAt":
|
|
if e.complexity.VendorRiskAssessment.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessment.CreatedAt(childComplexity), true
|
|
|
|
case "VendorRiskAssessment.dataSensitivity":
|
|
if e.complexity.VendorRiskAssessment.DataSensitivity == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessment.DataSensitivity(childComplexity), true
|
|
|
|
case "VendorRiskAssessment.expiresAt":
|
|
if e.complexity.VendorRiskAssessment.ExpiresAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessment.ExpiresAt(childComplexity), true
|
|
|
|
case "VendorRiskAssessment.id":
|
|
if e.complexity.VendorRiskAssessment.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessment.ID(childComplexity), true
|
|
|
|
case "VendorRiskAssessment.notes":
|
|
if e.complexity.VendorRiskAssessment.Notes == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessment.Notes(childComplexity), true
|
|
|
|
case "VendorRiskAssessment.updatedAt":
|
|
if e.complexity.VendorRiskAssessment.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessment.UpdatedAt(childComplexity), true
|
|
|
|
case "VendorRiskAssessment.vendor":
|
|
if e.complexity.VendorRiskAssessment.Vendor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessment.Vendor(childComplexity), true
|
|
|
|
case "VendorRiskAssessmentConnection.edges":
|
|
if e.complexity.VendorRiskAssessmentConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessmentConnection.Edges(childComplexity), true
|
|
|
|
case "VendorRiskAssessmentConnection.pageInfo":
|
|
if e.complexity.VendorRiskAssessmentConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessmentConnection.PageInfo(childComplexity), true
|
|
|
|
case "VendorRiskAssessmentEdge.cursor":
|
|
if e.complexity.VendorRiskAssessmentEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessmentEdge.Cursor(childComplexity), true
|
|
|
|
case "VendorRiskAssessmentEdge.node":
|
|
if e.complexity.VendorRiskAssessmentEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorRiskAssessmentEdge.Node(childComplexity), true
|
|
|
|
case "Viewer.id":
|
|
if e.complexity.Viewer.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Viewer.ID(childComplexity), true
|
|
|
|
case "Viewer.organizations":
|
|
if e.complexity.Viewer.Organizations == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Viewer_organizations_args(context.TODO(), rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Viewer.Organizations(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.OrganizationOrder)), true
|
|
|
|
case "Viewer.user":
|
|
if e.complexity.Viewer.User == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Viewer.User(childComplexity), true
|
|
|
|
}
|
|
return 0, false
|
|
}
|
|
|
|
func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
|
|
opCtx := graphql.GetOperationContext(ctx)
|
|
ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)}
|
|
inputUnmarshalMap := graphql.BuildUnmarshalerMap(
|
|
ec.unmarshalInputAssignTaskInput,
|
|
ec.unmarshalInputConfirmEmailInput,
|
|
ec.unmarshalInputConnectorOrder,
|
|
ec.unmarshalInputControlOrder,
|
|
ec.unmarshalInputCreateControlMesureMappingInput,
|
|
ec.unmarshalInputCreateControlPolicyMappingInput,
|
|
ec.unmarshalInputCreateEvidenceInput,
|
|
ec.unmarshalInputCreateFrameworkInput,
|
|
ec.unmarshalInputCreateMesureInput,
|
|
ec.unmarshalInputCreateOrganizationInput,
|
|
ec.unmarshalInputCreatePeopleInput,
|
|
ec.unmarshalInputCreatePolicyInput,
|
|
ec.unmarshalInputCreateRiskInput,
|
|
ec.unmarshalInputCreateRiskMesureMappingInput,
|
|
ec.unmarshalInputCreateRiskPolicyMappingInput,
|
|
ec.unmarshalInputCreateTaskInput,
|
|
ec.unmarshalInputCreateVendorInput,
|
|
ec.unmarshalInputCreateVendorRiskAssessmentInput,
|
|
ec.unmarshalInputDeleteControlMesureMappingInput,
|
|
ec.unmarshalInputDeleteControlPolicyMappingInput,
|
|
ec.unmarshalInputDeleteEvidenceInput,
|
|
ec.unmarshalInputDeleteFrameworkInput,
|
|
ec.unmarshalInputDeleteOrganizationInput,
|
|
ec.unmarshalInputDeletePeopleInput,
|
|
ec.unmarshalInputDeletePolicyInput,
|
|
ec.unmarshalInputDeleteRiskInput,
|
|
ec.unmarshalInputDeleteRiskMesureMappingInput,
|
|
ec.unmarshalInputDeleteRiskPolicyMappingInput,
|
|
ec.unmarshalInputDeleteTaskInput,
|
|
ec.unmarshalInputDeleteVendorComplianceReportInput,
|
|
ec.unmarshalInputDeleteVendorInput,
|
|
ec.unmarshalInputEvidenceOrder,
|
|
ec.unmarshalInputFrameworkOrder,
|
|
ec.unmarshalInputFulfillEvidenceInput,
|
|
ec.unmarshalInputImportFrameworkInput,
|
|
ec.unmarshalInputImportMesureInput,
|
|
ec.unmarshalInputInviteUserInput,
|
|
ec.unmarshalInputMesureOrder,
|
|
ec.unmarshalInputOrganizationOrder,
|
|
ec.unmarshalInputPeopleOrder,
|
|
ec.unmarshalInputPolicyOrder,
|
|
ec.unmarshalInputRemoveUserInput,
|
|
ec.unmarshalInputRequestEvidenceInput,
|
|
ec.unmarshalInputRiskOrder,
|
|
ec.unmarshalInputTaskOrder,
|
|
ec.unmarshalInputUnassignTaskInput,
|
|
ec.unmarshalInputUpdateFrameworkInput,
|
|
ec.unmarshalInputUpdateMesureInput,
|
|
ec.unmarshalInputUpdateOrganizationInput,
|
|
ec.unmarshalInputUpdatePeopleInput,
|
|
ec.unmarshalInputUpdatePolicyInput,
|
|
ec.unmarshalInputUpdateRiskInput,
|
|
ec.unmarshalInputUpdateTaskInput,
|
|
ec.unmarshalInputUpdateVendorInput,
|
|
ec.unmarshalInputUploadVendorComplianceReportInput,
|
|
ec.unmarshalInputUserOrder,
|
|
ec.unmarshalInputVendorComplianceReportOrder,
|
|
ec.unmarshalInputVendorOrder,
|
|
ec.unmarshalInputVendorRiskAssessmentOrder,
|
|
)
|
|
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.OperationContext
|
|
*executableSchema
|
|
deferred int32
|
|
pendingDeferred int32
|
|
deferredResults chan graphql.DeferredResult
|
|
}
|
|
|
|
func (ec *executionContext) processDeferredGroup(dg graphql.DeferredGroup) {
|
|
atomic.AddInt32(&ec.pendingDeferred, 1)
|
|
go func() {
|
|
ctx := graphql.WithFreshResponseContext(dg.Context)
|
|
dg.FieldSet.Dispatch(ctx)
|
|
ds := graphql.DeferredResult{
|
|
Path: dg.Path,
|
|
Label: dg.Label,
|
|
Result: dg.FieldSet,
|
|
Errors: graphql.GetErrors(ctx),
|
|
}
|
|
// null fields should bubble up
|
|
if dg.FieldSet.Invalids > 0 {
|
|
ds.Result = graphql.Null
|
|
}
|
|
ec.deferredResults <- ds
|
|
}()
|
|
}
|
|
|
|
func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
|
|
if ec.DisableIntrospection {
|
|
return nil, errors.New("introspection disabled")
|
|
}
|
|
return introspection.WrapSchema(ec.Schema()), nil
|
|
}
|
|
|
|
func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
|
|
if ec.DisableIntrospection {
|
|
return nil, errors.New("introspection disabled")
|
|
}
|
|
return introspection.WrapTypeFromDef(ec.Schema(), ec.Schema().Types[name]), nil
|
|
}
|
|
|
|
var sources = []*ast.Source{
|
|
{Name: "../schema.graphql", Input: `# Directives
|
|
directive @goField(
|
|
forceResolver: Boolean
|
|
name: String
|
|
omittable: Boolean
|
|
) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
|
|
|
|
directive @goModel(
|
|
model: String
|
|
models: [String!]
|
|
) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
|
|
|
|
directive @goEnum(value: String) on ENUM_VALUE
|
|
|
|
# Scalars
|
|
scalar CursorKey
|
|
scalar Void
|
|
scalar Datetime
|
|
scalar Upload
|
|
scalar Duration
|
|
|
|
# Interfaces
|
|
interface Node {
|
|
id: ID!
|
|
}
|
|
|
|
# Pagination
|
|
type PageInfo {
|
|
hasNextPage: Boolean!
|
|
hasPreviousPage: Boolean!
|
|
startCursor: CursorKey
|
|
endCursor: CursorKey
|
|
}
|
|
|
|
# Enums
|
|
enum OrderDirection
|
|
@goModel(model: "github.com/getprobo/probo/pkg/page.OrderDirection") {
|
|
ASC @goEnum(value: "github.com/getprobo/probo/pkg/page.OrderDirectionAsc")
|
|
DESC @goEnum(value: "github.com/getprobo/probo/pkg/page.OrderDirectionDesc")
|
|
}
|
|
|
|
enum MesureState
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.MesureState") {
|
|
NOT_STARTED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.MesureStateNotStarted"
|
|
)
|
|
IN_PROGRESS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.MesureStateInProgress"
|
|
)
|
|
NOT_APPLICABLE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.MesureStateNotApplicable"
|
|
)
|
|
IMPLEMENTED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.MesureStateImplemented"
|
|
)
|
|
}
|
|
|
|
enum TaskState
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.TaskState") {
|
|
TODO @goEnum(value: "github.com/getprobo/probo/pkg/coredata.TaskStateTodo")
|
|
DONE @goEnum(value: "github.com/getprobo/probo/pkg/coredata.TaskStateDone")
|
|
}
|
|
|
|
enum EvidenceState
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.EvidenceState") {
|
|
FULFILLED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.EvidenceStateFulfilled"
|
|
)
|
|
REQUESTED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.EvidenceStateRequested"
|
|
)
|
|
}
|
|
|
|
enum PeopleKind
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.PeopleKind") {
|
|
EMPLOYEE
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.PeopleKindEmployee")
|
|
CONTRACTOR
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.PeopleKindContractor"
|
|
)
|
|
SERVICE_ACCOUNT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.PeopleKindServiceAccount"
|
|
)
|
|
}
|
|
|
|
enum MesureImportance
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.MesureImportance") {
|
|
MANDATORY
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.MesureImportanceMandatory"
|
|
)
|
|
PREFERRED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.MesureImportancePreferred"
|
|
)
|
|
ADVANCED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.MesureImportanceAdvanced"
|
|
)
|
|
}
|
|
|
|
enum PolicyStatus
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.PolicyStatus") {
|
|
DRAFT
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.PolicyStatusDraft")
|
|
ACTIVE
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.PolicyStatusActive")
|
|
}
|
|
|
|
enum EvidenceType
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.EvidenceType") {
|
|
FILE @goEnum(value: "github.com/getprobo/probo/pkg/coredata.EvidenceTypeFile")
|
|
LINK @goEnum(value: "github.com/getprobo/probo/pkg/coredata.EvidenceTypeLink")
|
|
}
|
|
|
|
enum RiskTreatment
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.RiskTreatment") {
|
|
MITIGATED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.RiskTreatmentMitigated"
|
|
)
|
|
ACCEPTED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.RiskTreatmentAccepted"
|
|
)
|
|
AVOIDED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.RiskTreatmentAvoided"
|
|
)
|
|
TRANSFERRED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.RiskTreatmentTransferred"
|
|
)
|
|
}
|
|
|
|
# Order Field Enums
|
|
enum UserOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.UserOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.UserOrderFieldCreatedAt"
|
|
)
|
|
}
|
|
|
|
enum PeopleOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.PeopleOrderField") {
|
|
FULL_NAME
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.PeopleOrderFieldFullName"
|
|
)
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.PeopleOrderFieldCreatedAt"
|
|
)
|
|
}
|
|
|
|
enum VendorOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.VendorOrderField") {
|
|
NAME
|
|
}
|
|
|
|
enum FrameworkOrderField
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/coredata.FrameworkOrderField"
|
|
) {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.FrameworkOrderFieldCreatedAt"
|
|
)
|
|
}
|
|
|
|
enum ControlOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.ControlOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ControlOrderFieldCreatedAt"
|
|
)
|
|
}
|
|
|
|
enum MesureOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.MesureOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.MesureOrderFieldCreatedAt"
|
|
)
|
|
}
|
|
|
|
enum TaskOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.TaskOrderField") {
|
|
CREATED_AT
|
|
}
|
|
|
|
enum PolicyOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.PolicyOrderField") {
|
|
NAME
|
|
}
|
|
|
|
enum RiskOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.RiskOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.RiskOrderFieldCreatedAt"
|
|
)
|
|
}
|
|
|
|
enum EvidenceOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.EvidenceOrderField") {
|
|
CREATED_AT
|
|
}
|
|
|
|
enum VendorComplianceReportOrderField
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/coredata.VendorComplianceReportOrderField"
|
|
) {
|
|
REPORT_DATE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorComplianceReportOrderFieldReportDate"
|
|
)
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorComplianceReportOrderFieldCreatedAt"
|
|
)
|
|
}
|
|
|
|
enum OrganizationOrderField {
|
|
NAME
|
|
CREATED_AT
|
|
UPDATED_AT
|
|
}
|
|
|
|
enum ConnectorOrderField
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/coredata.ConnectorOrderField"
|
|
) {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ConnectorOrderFieldCreatedAt"
|
|
)
|
|
NAME
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ConnectorOrderFieldName"
|
|
)
|
|
}
|
|
|
|
enum DataSensitivity
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.DataSensitivity") {
|
|
NONE
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.DataSensitivityNone")
|
|
LOW
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.DataSensitivityLow")
|
|
MEDIUM
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.DataSensitivityMedium")
|
|
HIGH
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.DataSensitivityHigh")
|
|
CRITICAL
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.DataSensitivityCritical")
|
|
}
|
|
|
|
enum BusinessImpact
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.BusinessImpact") {
|
|
LOW
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.BusinessImpactLow")
|
|
MEDIUM
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.BusinessImpactMedium")
|
|
HIGH
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.BusinessImpactHigh")
|
|
CRITICAL
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.BusinessImpactCritical")
|
|
}
|
|
|
|
# Order Input Types
|
|
input UserOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.UserOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: UserOrderField!
|
|
}
|
|
|
|
input PeopleOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.PeopleOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: PeopleOrderField!
|
|
}
|
|
|
|
input VendorOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.VendorOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: VendorOrderField!
|
|
}
|
|
|
|
input FrameworkOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.FrameworkOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: FrameworkOrderField!
|
|
}
|
|
|
|
input ControlOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.ControlOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: ControlOrderField!
|
|
}
|
|
|
|
input MesureOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.MesureOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: MesureOrderField!
|
|
}
|
|
|
|
input TaskOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.TaskOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: TaskOrderField!
|
|
}
|
|
|
|
input PolicyOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.PolicyOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: PolicyOrderField!
|
|
}
|
|
|
|
input RiskOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.RiskOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: RiskOrderField!
|
|
}
|
|
|
|
input EvidenceOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.EvidenceOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: EvidenceOrderField!
|
|
}
|
|
|
|
input VendorComplianceReportOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.VendorComplianceReportOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: VendorComplianceReportOrderField!
|
|
}
|
|
|
|
input OrganizationOrder {
|
|
direction: OrderDirection!
|
|
field: OrganizationOrderField!
|
|
}
|
|
|
|
input ConnectorOrder {
|
|
field: ConnectorOrderField!
|
|
direction: OrderDirection!
|
|
}
|
|
|
|
# Core Types
|
|
type Organization implements Node {
|
|
id: ID!
|
|
name: String!
|
|
logoUrl: String @goField(forceResolver: true)
|
|
|
|
users(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: UserOrder
|
|
): UserConnection! @goField(forceResolver: true)
|
|
|
|
connectors(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ConnectorOrder
|
|
): ConnectorConnection! @goField(forceResolver: true)
|
|
|
|
frameworks(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: FrameworkOrder
|
|
): FrameworkConnection! @goField(forceResolver: true)
|
|
|
|
vendors(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: VendorOrder
|
|
): VendorConnection! @goField(forceResolver: true)
|
|
|
|
peoples(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: PeopleOrder
|
|
): PeopleConnection! @goField(forceResolver: true)
|
|
|
|
policies(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: PolicyOrder
|
|
): PolicyConnection! @goField(forceResolver: true)
|
|
|
|
mesures(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: MesureOrder
|
|
): MesureConnection! @goField(forceResolver: true)
|
|
|
|
risks(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: RiskOrder
|
|
): RiskConnection! @goField(forceResolver: true)
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type User implements Node {
|
|
id: ID!
|
|
fullName: String!
|
|
email: String!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
|
|
people(organizationId: ID!): People @goField(forceResolver: true)
|
|
}
|
|
|
|
type Connector implements Node {
|
|
id: ID!
|
|
name: String!
|
|
type: String!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type People implements Node {
|
|
id: ID!
|
|
fullName: String!
|
|
primaryEmailAddress: String!
|
|
additionalEmailAddresses: [String!]!
|
|
kind: PeopleKind!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Vendor implements Node {
|
|
id: ID!
|
|
name: String!
|
|
description: String
|
|
|
|
complianceReports(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: VendorComplianceReportOrder
|
|
): VendorComplianceReportConnection! @goField(forceResolver: true)
|
|
|
|
riskAssessments(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: VendorRiskAssessmentOrder
|
|
): VendorRiskAssessmentConnection! @goField(forceResolver: true)
|
|
|
|
businessOwner: People @goField(forceResolver: true)
|
|
securityOwner: People @goField(forceResolver: true)
|
|
|
|
serviceStartAt: Datetime!
|
|
serviceTerminationAt: Datetime
|
|
statusPageUrl: String
|
|
termsOfServiceUrl: String
|
|
privacyPolicyUrl: String
|
|
serviceLevelAgreementUrl: String
|
|
dataProcessingAgreementUrl: String
|
|
certifications: [String!]!
|
|
securityPageUrl: String
|
|
trustPageUrl: String
|
|
headquarterAddress: String
|
|
legalName: String
|
|
websiteUrl: String
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type VendorComplianceReport implements Node {
|
|
id: ID!
|
|
vendor: Vendor! @goField(forceResolver: true)
|
|
reportDate: Datetime!
|
|
validUntil: Datetime
|
|
reportName: String!
|
|
|
|
fileUrl: String! @goField(forceResolver: true)
|
|
fileSize: Int!
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Framework implements Node {
|
|
id: ID!
|
|
name: String!
|
|
description: String!
|
|
|
|
controls(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ControlOrder
|
|
): ControlConnection! @goField(forceResolver: true)
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Control implements Node {
|
|
id: ID!
|
|
referenceId: String!
|
|
name: String!
|
|
description: String!
|
|
|
|
mesures(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: MesureOrder
|
|
): MesureConnection! @goField(forceResolver: true)
|
|
|
|
policies(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: PolicyOrder
|
|
): PolicyConnection! @goField(forceResolver: true)
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Mesure implements Node {
|
|
id: ID!
|
|
category: String!
|
|
name: String!
|
|
description: String!
|
|
state: MesureState!
|
|
importance: MesureImportance!
|
|
|
|
tasks(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: TaskOrder
|
|
): TaskConnection! @goField(forceResolver: true)
|
|
|
|
risks(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: RiskOrder
|
|
): RiskConnection! @goField(forceResolver: true)
|
|
|
|
controls(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ControlOrder
|
|
): ControlConnection! @goField(forceResolver: true)
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Task implements Node {
|
|
id: ID!
|
|
name: String!
|
|
description: String!
|
|
state: TaskState!
|
|
timeEstimate: Duration
|
|
assignedTo: People @goField(forceResolver: true)
|
|
|
|
evidences(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: EvidenceOrder
|
|
): EvidenceConnection! @goField(forceResolver: true)
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Evidence implements Node {
|
|
id: ID!
|
|
fileUrl: String @goField(forceResolver: true)
|
|
mimeType: String!
|
|
size: Int!
|
|
state: EvidenceState!
|
|
type: EvidenceType!
|
|
filename: String!
|
|
url: String
|
|
description: String!
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Policy implements Node {
|
|
id: ID!
|
|
name: String!
|
|
status: PolicyStatus!
|
|
content: String!
|
|
reviewDate: Datetime
|
|
owner: People! @goField(forceResolver: true)
|
|
|
|
controls(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ControlOrder
|
|
): ControlConnection! @goField(forceResolver: true)
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Risk implements Node {
|
|
id: ID!
|
|
name: String!
|
|
description: String!
|
|
category: String!
|
|
treatment: RiskTreatment!
|
|
inherentLikelihood: Int!
|
|
inherentImpact: Int!
|
|
inherentSeverity: Int!
|
|
residualLikelihood: Int!
|
|
residualImpact: Int!
|
|
residualSeverity: Int!
|
|
note: String!
|
|
|
|
owner: People @goField(forceResolver: true)
|
|
|
|
mesures(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: MesureOrder
|
|
): MesureConnection! @goField(forceResolver: true)
|
|
|
|
policies(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: PolicyOrder
|
|
): PolicyConnection! @goField(forceResolver: true)
|
|
|
|
controls(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ControlOrder
|
|
): ControlConnection! @goField(forceResolver: true)
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Session {
|
|
id: ID!
|
|
expiresAt: Datetime!
|
|
}
|
|
|
|
type Viewer {
|
|
id: ID!
|
|
user: User!
|
|
|
|
organizations(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: OrganizationOrder
|
|
): OrganizationConnection! @goField(forceResolver: true)
|
|
}
|
|
|
|
# Connection Types
|
|
type OrganizationConnection {
|
|
edges: [OrganizationEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type OrganizationEdge {
|
|
cursor: CursorKey!
|
|
node: Organization!
|
|
}
|
|
|
|
type UserConnection {
|
|
edges: [UserEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type UserEdge {
|
|
cursor: CursorKey!
|
|
node: User!
|
|
}
|
|
|
|
type PeopleConnection {
|
|
edges: [PeopleEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type PeopleEdge {
|
|
cursor: CursorKey!
|
|
node: People!
|
|
}
|
|
|
|
type VendorConnection {
|
|
edges: [VendorEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type VendorEdge {
|
|
cursor: CursorKey!
|
|
node: Vendor!
|
|
}
|
|
|
|
type FrameworkConnection {
|
|
edges: [FrameworkEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type FrameworkEdge {
|
|
cursor: CursorKey!
|
|
node: Framework!
|
|
}
|
|
|
|
type ControlConnection {
|
|
edges: [ControlEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type ControlEdge {
|
|
cursor: CursorKey!
|
|
node: Control!
|
|
}
|
|
|
|
type MesureConnection {
|
|
edges: [MesureEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type MesureEdge {
|
|
cursor: CursorKey!
|
|
node: Mesure!
|
|
}
|
|
|
|
type TaskConnection {
|
|
edges: [TaskEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type TaskEdge {
|
|
cursor: CursorKey!
|
|
node: Task!
|
|
}
|
|
|
|
type EvidenceConnection {
|
|
edges: [EvidenceEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type EvidenceEdge {
|
|
cursor: CursorKey!
|
|
node: Evidence!
|
|
}
|
|
|
|
type PolicyConnection {
|
|
edges: [PolicyEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type PolicyEdge {
|
|
cursor: CursorKey!
|
|
node: Policy!
|
|
}
|
|
|
|
type RiskConnection {
|
|
edges: [RiskEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type RiskEdge {
|
|
cursor: CursorKey!
|
|
node: Risk!
|
|
}
|
|
|
|
type VendorComplianceReportConnection {
|
|
edges: [VendorComplianceReportEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type VendorComplianceReportEdge {
|
|
cursor: CursorKey!
|
|
node: VendorComplianceReport!
|
|
}
|
|
|
|
type ConnectorConnection {
|
|
edges: [ConnectorEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type ConnectorEdge {
|
|
cursor: CursorKey!
|
|
node: Connector!
|
|
}
|
|
|
|
type VendorRiskAssessmentConnection {
|
|
edges: [VendorRiskAssessmentEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type VendorRiskAssessmentEdge {
|
|
cursor: CursorKey!
|
|
node: VendorRiskAssessment!
|
|
}
|
|
|
|
# Root Types
|
|
type Query {
|
|
node(id: ID!): Node!
|
|
viewer: Viewer!
|
|
}
|
|
|
|
type Mutation {
|
|
# Organization mutations
|
|
createOrganization(
|
|
input: CreateOrganizationInput!
|
|
): CreateOrganizationPayload!
|
|
updateOrganization(
|
|
input: UpdateOrganizationInput!
|
|
): UpdateOrganizationPayload!
|
|
deleteOrganization(
|
|
input: DeleteOrganizationInput!
|
|
): DeleteOrganizationPayload!
|
|
|
|
# User mutations
|
|
confirmEmail(input: ConfirmEmailInput!): ConfirmEmailPayload!
|
|
inviteUser(input: InviteUserInput!): InviteUserPayload!
|
|
removeUser(input: RemoveUserInput!): RemoveUserPayload!
|
|
|
|
# People mutations
|
|
createPeople(input: CreatePeopleInput!): CreatePeoplePayload!
|
|
updatePeople(input: UpdatePeopleInput!): UpdatePeoplePayload!
|
|
deletePeople(input: DeletePeopleInput!): DeletePeoplePayload!
|
|
|
|
# Vendor mutations
|
|
createVendor(input: CreateVendorInput!): CreateVendorPayload!
|
|
updateVendor(input: UpdateVendorInput!): UpdateVendorPayload!
|
|
deleteVendor(input: DeleteVendorInput!): DeleteVendorPayload!
|
|
|
|
# Framework mutations
|
|
createFramework(input: CreateFrameworkInput!): CreateFrameworkPayload!
|
|
updateFramework(input: UpdateFrameworkInput!): UpdateFrameworkPayload!
|
|
importFramework(input: ImportFrameworkInput!): ImportFrameworkPayload!
|
|
deleteFramework(input: DeleteFrameworkInput!): DeleteFrameworkPayload!
|
|
|
|
# Mesure mutations
|
|
createMesure(input: CreateMesureInput!): CreateMesurePayload!
|
|
updateMesure(input: UpdateMesureInput!): UpdateMesurePayload!
|
|
importMesure(input: ImportMesureInput!): ImportMesurePayload!
|
|
|
|
# Control mutations
|
|
createControlMesureMapping(
|
|
input: CreateControlMesureMappingInput!
|
|
): CreateControlMesureMappingPayload!
|
|
createControlPolicyMapping(
|
|
input: CreateControlPolicyMappingInput!
|
|
): CreateControlPolicyMappingPayload!
|
|
deleteControlMesureMapping(
|
|
input: DeleteControlMesureMappingInput!
|
|
): DeleteControlMesureMappingPayload!
|
|
deleteControlPolicyMapping(
|
|
input: DeleteControlPolicyMappingInput!
|
|
): DeleteControlPolicyMappingPayload!
|
|
|
|
# Task mutations
|
|
createTask(input: CreateTaskInput!): CreateTaskPayload!
|
|
updateTask(input: UpdateTaskInput!): UpdateTaskPayload!
|
|
deleteTask(input: DeleteTaskInput!): DeleteTaskPayload!
|
|
assignTask(input: AssignTaskInput!): AssignTaskPayload!
|
|
unassignTask(input: UnassignTaskInput!): UnassignTaskPayload!
|
|
|
|
# Risk mutations
|
|
createRisk(input: CreateRiskInput!): CreateRiskPayload!
|
|
updateRisk(input: UpdateRiskInput!): UpdateRiskPayload!
|
|
deleteRisk(input: DeleteRiskInput!): DeleteRiskPayload!
|
|
createRiskMesureMapping(
|
|
input: CreateRiskMesureMappingInput!
|
|
): CreateRiskMesureMappingPayload!
|
|
deleteRiskMesureMapping(
|
|
input: DeleteRiskMesureMappingInput!
|
|
): DeleteRiskMesureMappingPayload!
|
|
|
|
createRiskPolicyMapping(
|
|
input: CreateRiskPolicyMappingInput!
|
|
): CreateRiskPolicyMappingPayload!
|
|
deleteRiskPolicyMapping(
|
|
input: DeleteRiskPolicyMappingInput!
|
|
): DeleteRiskPolicyMappingPayload!
|
|
|
|
# Evidence mutations
|
|
requestEvidence(input: RequestEvidenceInput!): RequestEvidencePayload!
|
|
fulfillEvidence(input: FulfillEvidenceInput!): FulfillEvidencePayload!
|
|
createEvidence(input: CreateEvidenceInput!): CreateEvidencePayload!
|
|
deleteEvidence(input: DeleteEvidenceInput!): DeleteEvidencePayload!
|
|
|
|
# Vendor Compliance Report mutations
|
|
uploadVendorComplianceReport(
|
|
input: UploadVendorComplianceReportInput!
|
|
): UploadVendorComplianceReportPayload!
|
|
deleteVendorComplianceReport(
|
|
input: DeleteVendorComplianceReportInput!
|
|
): DeleteVendorComplianceReportPayload!
|
|
|
|
# Policy mutations
|
|
createPolicy(input: CreatePolicyInput!): CreatePolicyPayload!
|
|
updatePolicy(input: UpdatePolicyInput!): UpdatePolicyPayload!
|
|
deletePolicy(input: DeletePolicyInput!): DeletePolicyPayload!
|
|
|
|
createVendorRiskAssessment(input: CreateVendorRiskAssessmentInput!): CreateVendorRiskAssessmentPayload!
|
|
}
|
|
|
|
# Input Types
|
|
input CreateOrganizationInput {
|
|
name: String!
|
|
}
|
|
|
|
input UpdateOrganizationInput {
|
|
organizationId: ID!
|
|
name: String
|
|
logo: Upload
|
|
}
|
|
|
|
input DeleteOrganizationInput {
|
|
organizationId: ID!
|
|
}
|
|
|
|
input CreateVendorInput {
|
|
organizationId: ID!
|
|
name: String!
|
|
description: String
|
|
headquarterAddress: String
|
|
legalName: String
|
|
websiteUrl: String
|
|
privacyPolicyUrl: String
|
|
category: String
|
|
serviceLevelAgreementUrl: String
|
|
dataProcessingAgreementUrl: String
|
|
certifications: [String!]
|
|
securityPageUrl: String
|
|
trustPageUrl: String
|
|
statusPageUrl: String
|
|
termsOfServiceUrl: String
|
|
serviceStartAt: Datetime!
|
|
serviceTerminationAt: Datetime
|
|
businessOwnerId: ID
|
|
securityOwnerId: ID
|
|
}
|
|
|
|
input UpdateVendorInput {
|
|
id: ID!
|
|
name: String
|
|
description: String
|
|
serviceStartAt: Datetime
|
|
serviceTerminationAt: Datetime
|
|
statusPageUrl: String
|
|
termsOfServiceUrl: String
|
|
privacyPolicyUrl: String
|
|
serviceLevelAgreementUrl: String
|
|
dataProcessingAgreementUrl: String
|
|
websiteUrl: String
|
|
legalName: String
|
|
headquarterAddress: String
|
|
category: String
|
|
certifications: [String!]
|
|
securityPageUrl: String
|
|
trustPageUrl: String
|
|
businessOwnerId: ID
|
|
securityOwnerId: ID
|
|
}
|
|
|
|
input DeleteVendorInput {
|
|
vendorId: ID!
|
|
}
|
|
|
|
input CreatePeopleInput {
|
|
organizationId: ID!
|
|
fullName: String!
|
|
primaryEmailAddress: String!
|
|
additionalEmailAddresses: [String!]
|
|
kind: PeopleKind!
|
|
}
|
|
|
|
input UpdatePeopleInput {
|
|
id: ID!
|
|
fullName: String
|
|
primaryEmailAddress: String
|
|
additionalEmailAddresses: [String!]
|
|
kind: PeopleKind
|
|
}
|
|
|
|
input DeletePeopleInput {
|
|
peopleId: ID!
|
|
}
|
|
|
|
input CreateFrameworkInput {
|
|
organizationId: ID!
|
|
name: String!
|
|
description: String!
|
|
}
|
|
|
|
input UpdateFrameworkInput {
|
|
id: ID!
|
|
name: String
|
|
description: String
|
|
}
|
|
|
|
input ImportFrameworkInput {
|
|
organizationId: ID!
|
|
file: Upload!
|
|
}
|
|
|
|
input DeleteFrameworkInput {
|
|
frameworkId: ID!
|
|
}
|
|
|
|
input CreateMesureInput {
|
|
organizationId: ID!
|
|
name: String!
|
|
description: String!
|
|
category: String!
|
|
importance: MesureImportance!
|
|
}
|
|
|
|
input UpdateMesureInput {
|
|
id: ID!
|
|
name: String
|
|
description: String
|
|
category: String
|
|
state: MesureState
|
|
importance: MesureImportance
|
|
}
|
|
|
|
input ImportMesureInput {
|
|
organizationId: ID!
|
|
file: Upload!
|
|
}
|
|
|
|
input CreateTaskInput {
|
|
mesureId: ID!
|
|
name: String!
|
|
description: String!
|
|
timeEstimate: Duration
|
|
assignedToId: ID
|
|
}
|
|
|
|
input UpdateTaskInput {
|
|
taskId: ID!
|
|
name: String
|
|
description: String
|
|
state: TaskState
|
|
timeEstimate: Duration
|
|
}
|
|
|
|
input DeleteTaskInput {
|
|
taskId: ID!
|
|
}
|
|
|
|
input AssignTaskInput {
|
|
taskId: ID!
|
|
assignedToId: ID!
|
|
}
|
|
|
|
input UnassignTaskInput {
|
|
taskId: ID!
|
|
}
|
|
|
|
input CreateControlMesureMappingInput {
|
|
controlId: ID!
|
|
mesureId: ID!
|
|
}
|
|
|
|
input CreateControlPolicyMappingInput {
|
|
controlId: ID!
|
|
policyId: ID!
|
|
}
|
|
|
|
input DeleteControlMesureMappingInput {
|
|
controlId: ID!
|
|
mesureId: ID!
|
|
}
|
|
|
|
input DeleteControlPolicyMappingInput {
|
|
controlId: ID!
|
|
policyId: ID!
|
|
}
|
|
|
|
input CreateRiskInput {
|
|
organizationId: ID!
|
|
name: String!
|
|
description: String!
|
|
category: String!
|
|
ownerId: ID
|
|
treatment: RiskTreatment!
|
|
inherentLikelihood: Int!
|
|
inherentImpact: Int!
|
|
residualLikelihood: Int
|
|
residualImpact: Int
|
|
note: String
|
|
}
|
|
|
|
input UpdateRiskInput {
|
|
id: ID!
|
|
name: String
|
|
description: String
|
|
category: String
|
|
ownerId: ID
|
|
treatment: RiskTreatment
|
|
inherentLikelihood: Int
|
|
inherentImpact: Int
|
|
residualLikelihood: Int
|
|
residualImpact: Int
|
|
note: String
|
|
}
|
|
|
|
input DeleteRiskInput {
|
|
riskId: ID!
|
|
}
|
|
|
|
input CreateRiskMesureMappingInput {
|
|
riskId: ID!
|
|
mesureId: ID!
|
|
}
|
|
|
|
input DeleteRiskMesureMappingInput {
|
|
riskId: ID!
|
|
mesureId: ID!
|
|
}
|
|
|
|
input CreateRiskPolicyMappingInput {
|
|
riskId: ID!
|
|
policyId: ID!
|
|
}
|
|
|
|
input DeleteRiskPolicyMappingInput {
|
|
riskId: ID!
|
|
policyId: ID!
|
|
}
|
|
|
|
input RequestEvidenceInput {
|
|
taskId: ID!
|
|
name: String!
|
|
type: EvidenceType!
|
|
description: String!
|
|
}
|
|
|
|
input FulfillEvidenceInput {
|
|
evidenceId: ID!
|
|
name: String
|
|
file: Upload
|
|
url: String
|
|
}
|
|
|
|
input CreateEvidenceInput {
|
|
taskId: ID!
|
|
name: String!
|
|
type: EvidenceType!
|
|
url: String
|
|
file: Upload
|
|
description: String!
|
|
}
|
|
|
|
input DeleteEvidenceInput {
|
|
evidenceId: ID!
|
|
}
|
|
|
|
input UploadVendorComplianceReportInput {
|
|
vendorId: ID!
|
|
reportDate: Datetime!
|
|
validUntil: Datetime
|
|
reportName: String!
|
|
file: Upload!
|
|
}
|
|
|
|
input DeleteVendorComplianceReportInput {
|
|
reportId: ID!
|
|
}
|
|
|
|
input CreatePolicyInput {
|
|
organizationId: ID!
|
|
name: String!
|
|
content: String!
|
|
status: PolicyStatus!
|
|
reviewDate: Datetime
|
|
ownerId: ID!
|
|
}
|
|
|
|
input UpdatePolicyInput {
|
|
id: ID!
|
|
name: String
|
|
content: String
|
|
status: PolicyStatus
|
|
reviewDate: Datetime
|
|
ownerId: ID
|
|
}
|
|
|
|
input DeletePolicyInput {
|
|
policyId: ID!
|
|
}
|
|
|
|
input ConfirmEmailInput {
|
|
token: String!
|
|
}
|
|
|
|
input InviteUserInput {
|
|
organizationId: ID!
|
|
email: String!
|
|
fullName: String!
|
|
}
|
|
|
|
input RemoveUserInput {
|
|
organizationId: ID!
|
|
userId: ID!
|
|
}
|
|
|
|
# Payload Types
|
|
type CreateOrganizationPayload {
|
|
organizationEdge: OrganizationEdge!
|
|
}
|
|
|
|
type UpdateOrganizationPayload {
|
|
organization: Organization!
|
|
}
|
|
|
|
type DeleteOrganizationPayload {
|
|
deletedOrganizationId: ID!
|
|
}
|
|
|
|
type CreateVendorPayload {
|
|
vendorEdge: VendorEdge!
|
|
}
|
|
|
|
type UpdateVendorPayload {
|
|
vendor: Vendor!
|
|
}
|
|
|
|
type DeleteVendorPayload {
|
|
deletedVendorId: ID!
|
|
}
|
|
|
|
type CreatePeoplePayload {
|
|
peopleEdge: PeopleEdge!
|
|
}
|
|
|
|
type UpdatePeoplePayload {
|
|
people: People!
|
|
}
|
|
|
|
type DeletePeoplePayload {
|
|
deletedPeopleId: ID!
|
|
}
|
|
|
|
type CreateFrameworkPayload {
|
|
frameworkEdge: FrameworkEdge!
|
|
}
|
|
|
|
type UpdateFrameworkPayload {
|
|
framework: Framework!
|
|
}
|
|
|
|
type ImportFrameworkPayload {
|
|
frameworkEdge: FrameworkEdge!
|
|
}
|
|
|
|
type DeleteFrameworkPayload {
|
|
deletedFrameworkId: ID!
|
|
}
|
|
|
|
type CreateMesurePayload {
|
|
mesureEdge: MesureEdge!
|
|
}
|
|
|
|
type UpdateMesurePayload {
|
|
mesure: Mesure!
|
|
}
|
|
|
|
type ImportMesurePayload {
|
|
mesureEdges: [MesureEdge!]!
|
|
}
|
|
|
|
type CreateTaskPayload {
|
|
taskEdge: TaskEdge!
|
|
}
|
|
|
|
type UpdateTaskPayload {
|
|
task: Task!
|
|
}
|
|
|
|
type DeleteTaskPayload {
|
|
deletedTaskId: ID!
|
|
}
|
|
|
|
type AssignTaskPayload {
|
|
task: Task!
|
|
}
|
|
|
|
type UnassignTaskPayload {
|
|
task: Task!
|
|
}
|
|
|
|
type CreateControlMesureMappingPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type CreateControlPolicyMappingPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type DeleteControlMesureMappingPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type DeleteControlPolicyMappingPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type CreateRiskPayload {
|
|
riskEdge: RiskEdge!
|
|
}
|
|
|
|
type UpdateRiskPayload {
|
|
risk: Risk!
|
|
}
|
|
|
|
type DeleteRiskPayload {
|
|
deletedRiskId: ID!
|
|
}
|
|
|
|
type CreateRiskMesureMappingPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type DeleteRiskMesureMappingPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type CreateRiskPolicyMappingPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type DeleteRiskPolicyMappingPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type RequestEvidencePayload {
|
|
evidenceEdge: EvidenceEdge!
|
|
}
|
|
|
|
type FulfillEvidencePayload {
|
|
evidenceEdge: EvidenceEdge!
|
|
}
|
|
|
|
type CreateEvidencePayload {
|
|
evidenceEdge: EvidenceEdge!
|
|
}
|
|
|
|
type DeleteEvidencePayload {
|
|
deletedEvidenceId: ID!
|
|
}
|
|
|
|
type UploadVendorComplianceReportPayload {
|
|
vendorComplianceReportEdge: VendorComplianceReportEdge!
|
|
}
|
|
|
|
type DeleteVendorComplianceReportPayload {
|
|
deletedVendorComplianceReportId: ID!
|
|
}
|
|
|
|
type CreatePolicyPayload {
|
|
policyEdge: PolicyEdge!
|
|
}
|
|
|
|
type UpdatePolicyPayload {
|
|
policy: Policy!
|
|
}
|
|
|
|
type DeletePolicyPayload {
|
|
deletedPolicyId: ID!
|
|
}
|
|
|
|
type ConfirmEmailPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type InviteUserPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type RemoveUserPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
input VendorRiskAssessmentOrder {
|
|
field: VendorRiskAssessmentOrderField!
|
|
direction: OrderDirection!
|
|
}
|
|
|
|
type VendorRiskAssessment implements Node {
|
|
id: ID!
|
|
vendor: Vendor! @goField(forceResolver: true)
|
|
assessedAt: Datetime!
|
|
assessedBy: People! @goField(forceResolver: true)
|
|
expiresAt: Datetime!
|
|
dataSensitivity: DataSensitivity!
|
|
businessImpact: BusinessImpact!
|
|
notes: String
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
enum VendorRiskAssessmentOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.VendorRiskAssessmentOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorRiskAssessmentOrderFieldCreatedAt"
|
|
)
|
|
EXPIRES_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorRiskAssessmentOrderFieldExpiresAt"
|
|
)
|
|
ASSESSED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorRiskAssessmentOrderFieldAssessedAt"
|
|
)
|
|
}
|
|
|
|
input CreateVendorRiskAssessmentInput {
|
|
vendorId: ID!
|
|
assessedBy: ID!
|
|
expiresAt: Datetime!
|
|
dataSensitivity: DataSensitivity!
|
|
businessImpact: BusinessImpact!
|
|
notes: String
|
|
}
|
|
|
|
type CreateVendorRiskAssessmentPayload {
|
|
vendorRiskAssessmentEdge: VendorRiskAssessmentEdge!
|
|
}
|
|
`, BuiltIn: false},
|
|
}
|
|
var parsedSchema = gqlparser.MustLoadSchema(sources...)
|
|
|
|
// endregion ************************** generated!.gotpl **************************
|
|
|
|
// region ***************************** args.gotpl *****************************
|
|
|
|
func (ec *executionContext) field_Control_mesures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Control_mesures_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Control_mesures_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Control_mesures_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Control_mesures_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Control_mesures_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Control_mesures_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_mesures_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_mesures_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_mesures_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_mesures_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.MesureOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOMesureOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.MesureOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_policies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Control_policies_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Control_policies_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Control_policies_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Control_policies_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Control_policies_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Control_policies_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_policies_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_policies_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_policies_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_policies_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.PolicyOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOPolicyOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.PolicyOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Framework_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Framework_controls_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Framework_controls_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Framework_controls_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Framework_controls_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Framework_controls_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Framework_controls_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Framework_controls_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Framework_controls_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Framework_controls_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Framework_controls_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ControlOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOControlOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ControlOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mesure_controls_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Mesure_controls_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Mesure_controls_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Mesure_controls_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Mesure_controls_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mesure_controls_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_controls_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_controls_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_controls_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_controls_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ControlOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOControlOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ControlOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mesure_risks_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Mesure_risks_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Mesure_risks_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Mesure_risks_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Mesure_risks_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mesure_risks_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_risks_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_risks_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_risks_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_risks_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.RiskOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalORiskOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.RiskOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mesure_tasks_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Mesure_tasks_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Mesure_tasks_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Mesure_tasks_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Mesure_tasks_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mesure_tasks_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_tasks_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_tasks_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_tasks_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mesure_tasks_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.TaskOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOTaskOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.TaskOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_assignTask_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_assignTask_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_assignTask_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.AssignTaskInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNAssignTaskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssignTaskInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.AssignTaskInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_confirmEmail_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_confirmEmail_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_confirmEmail_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.ConfirmEmailInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNConfirmEmailInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConfirmEmailInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.ConfirmEmailInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createControlMesureMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createControlMesureMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createControlMesureMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateControlMesureMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateControlMesureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMesureMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateControlMesureMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createControlPolicyMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createControlPolicyMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createControlPolicyMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateControlPolicyMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateControlPolicyMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlPolicyMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateControlPolicyMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createEvidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createEvidence_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createEvidence_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateEvidenceInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateEvidenceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateEvidenceInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateEvidenceInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createFramework_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createFramework_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateFrameworkInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateFrameworkInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateFrameworkInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateFrameworkInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createMesure_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createMesure_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createMesure_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateMesureInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateMesureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMesureInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateMesureInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createOrganization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createOrganization_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createOrganization_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateOrganizationInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateOrganizationInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateOrganizationInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateOrganizationInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createPeople_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createPeople_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createPeople_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreatePeopleInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreatePeopleInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreatePeopleInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreatePeopleInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createPolicy_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createPolicy_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createPolicy_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreatePolicyInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreatePolicyInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreatePolicyInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreatePolicyInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createRiskMesureMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createRiskMesureMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createRiskMesureMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateRiskMesureMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateRiskMesureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMesureMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateRiskMesureMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createRiskPolicyMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createRiskPolicyMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createRiskPolicyMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateRiskPolicyMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateRiskPolicyMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskPolicyMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateRiskPolicyMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createRisk_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createRisk_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createRisk_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateRiskInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateRiskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateRiskInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createTask_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createTask_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createTask_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateTaskInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateTaskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTaskInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateTaskInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createVendorRiskAssessment_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createVendorRiskAssessment_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createVendorRiskAssessment_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateVendorRiskAssessmentInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateVendorRiskAssessmentInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorRiskAssessmentInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateVendorRiskAssessmentInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createVendor_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createVendor_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createVendor_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateVendorInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateVendorInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateVendorInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteControlMesureMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteControlMesureMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteControlMesureMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteControlMesureMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteControlMesureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMesureMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteControlMesureMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteControlPolicyMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteControlPolicyMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteControlPolicyMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteControlPolicyMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteControlPolicyMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlPolicyMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteControlPolicyMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteEvidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteEvidence_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteEvidence_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteEvidenceInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteEvidenceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteEvidenceInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteEvidenceInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteFramework_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteFramework_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteFrameworkInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteFrameworkInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteFrameworkInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteFrameworkInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteOrganization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteOrganization_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteOrganization_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteOrganizationInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteOrganizationInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteOrganizationInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteOrganizationInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deletePeople_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deletePeople_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deletePeople_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeletePeopleInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeletePeopleInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeletePeopleInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeletePeopleInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deletePolicy_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deletePolicy_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deletePolicy_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeletePolicyInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeletePolicyInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeletePolicyInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeletePolicyInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteRiskMesureMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteRiskMesureMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteRiskMesureMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteRiskMesureMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteRiskMesureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMesureMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteRiskMesureMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteRiskPolicyMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteRiskPolicyMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteRiskPolicyMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteRiskPolicyMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteRiskPolicyMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskPolicyMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteRiskPolicyMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteRisk_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteRisk_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteRisk_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteRiskInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteRiskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteRiskInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteTask_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteTask_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteTask_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteTaskInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteTaskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTaskInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteTaskInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteVendorComplianceReport_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteVendorComplianceReport_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteVendorComplianceReport_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteVendorComplianceReportInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteVendorComplianceReportInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorComplianceReportInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteVendorComplianceReportInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteVendor_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteVendor_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteVendor_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteVendorInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteVendorInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteVendorInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_fulfillEvidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_fulfillEvidence_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_fulfillEvidence_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.FulfillEvidenceInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNFulfillEvidenceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFulfillEvidenceInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.FulfillEvidenceInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_importFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_importFramework_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_importFramework_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.ImportFrameworkInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNImportFrameworkInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportFrameworkInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.ImportFrameworkInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_importMesure_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_importMesure_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_importMesure_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.ImportMesureInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNImportMesureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMesureInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.ImportMesureInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_inviteUser_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_inviteUser_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_inviteUser_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.InviteUserInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNInviteUserInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐInviteUserInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.InviteUserInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_removeUser_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_removeUser_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_removeUser_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.RemoveUserInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNRemoveUserInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRemoveUserInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.RemoveUserInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_requestEvidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_requestEvidence_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_requestEvidence_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.RequestEvidenceInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNRequestEvidenceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestEvidenceInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.RequestEvidenceInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_unassignTask_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_unassignTask_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_unassignTask_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UnassignTaskInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUnassignTaskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUnassignTaskInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UnassignTaskInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateFramework_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateFramework_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateFrameworkInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateFrameworkInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateFrameworkInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateFrameworkInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateMesure_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateMesure_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateMesure_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateMesureInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateMesureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMesureInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateMesureInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateOrganization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateOrganization_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateOrganization_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateOrganizationInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateOrganizationInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateOrganizationInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateOrganizationInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updatePeople_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updatePeople_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updatePeople_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdatePeopleInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdatePeopleInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdatePeopleInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdatePeopleInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updatePolicy_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updatePolicy_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updatePolicy_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdatePolicyInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdatePolicyInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdatePolicyInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdatePolicyInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateRisk_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateRisk_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateRisk_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateRiskInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateRiskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRiskInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateRiskInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateTask_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateTask_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateTask_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateTaskInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateTaskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTaskInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateTaskInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateVendor_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateVendor_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateVendor_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateVendorInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateVendorInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateVendorInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_uploadVendorComplianceReport_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_uploadVendorComplianceReport_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_uploadVendorComplianceReport_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UploadVendorComplianceReportInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUploadVendorComplianceReportInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorComplianceReportInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UploadVendorComplianceReportInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_connectors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_connectors_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_connectors_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_connectors_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_connectors_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_connectors_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_connectors_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_connectors_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_connectors_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_connectors_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_connectors_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ConnectorOrder, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOConnectorOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConnectorOrder(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ConnectorOrder
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_frameworks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_frameworks_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_frameworks_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_frameworks_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_frameworks_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_frameworks_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_frameworks_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_frameworks_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_frameworks_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_frameworks_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_frameworks_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.FrameworkOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOFrameworkOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.FrameworkOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_mesures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_mesures_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_mesures_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_mesures_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_mesures_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_mesures_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_mesures_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_mesures_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_mesures_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_mesures_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_mesures_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.MesureOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOMesureOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.MesureOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_peoples_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_peoples_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_peoples_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_peoples_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_peoples_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_peoples_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_peoples_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_peoples_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_peoples_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_peoples_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_peoples_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.PeopleOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOPeopleOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeopleOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.PeopleOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_policies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_policies_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_policies_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_policies_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_policies_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_policies_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_policies_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_policies_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_policies_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_policies_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_policies_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.PolicyOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOPolicyOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.PolicyOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_risks_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_risks_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_risks_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_risks_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_risks_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_risks_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_risks_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_risks_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_risks_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_risks_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.RiskOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalORiskOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.RiskOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_users_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_users_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_users_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_users_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_users_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_users_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_users_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_users_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_users_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_users_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_users_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.UserOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOUserOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUserOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.UserOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_vendors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_vendors_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_vendors_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_vendors_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_vendors_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_vendors_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_vendors_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_vendors_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_vendors_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_vendors_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_vendors_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.VendorOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOVendorOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.VendorOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Policy_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Policy_controls_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Policy_controls_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Policy_controls_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Policy_controls_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Policy_controls_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Policy_controls_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Policy_controls_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Policy_controls_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Policy_controls_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Policy_controls_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ControlOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOControlOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ControlOrderBy
|
|
return zeroVal, 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 := ec.field_Query___type_argsName(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["name"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Query___type_argsName(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (string, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
if tmp, ok := rawArgs["name"]; ok {
|
|
return ec.unmarshalNString2string(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal string
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Query_node_argsID(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["id"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Query_node_argsID(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (gid.GID, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
|
|
if tmp, ok := rawArgs["id"]; ok {
|
|
return ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal gid.GID
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Risk_controls_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Risk_controls_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Risk_controls_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Risk_controls_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Risk_controls_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Risk_controls_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_controls_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_controls_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_controls_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_controls_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ControlOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOControlOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ControlOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_mesures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Risk_mesures_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Risk_mesures_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Risk_mesures_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Risk_mesures_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Risk_mesures_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Risk_mesures_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_mesures_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_mesures_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_mesures_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_mesures_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.MesureOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOMesureOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.MesureOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_policies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Risk_policies_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Risk_policies_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Risk_policies_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Risk_policies_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Risk_policies_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Risk_policies_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_policies_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_policies_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_policies_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_policies_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.PolicyOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOPolicyOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.PolicyOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Task_evidences_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Task_evidences_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Task_evidences_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Task_evidences_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Task_evidences_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Task_evidences_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Task_evidences_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Task_evidences_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Task_evidences_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Task_evidences_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Task_evidences_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.EvidenceOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOEvidenceOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.EvidenceOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_User_people_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_User_people_argsOrganizationID(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["organizationId"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_User_people_argsOrganizationID(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (gid.GID, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
if tmp, ok := rawArgs["organizationId"]; ok {
|
|
return ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal gid.GID
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Vendor_complianceReports_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Vendor_complianceReports_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Vendor_complianceReports_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Vendor_complianceReports_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Vendor_complianceReports_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Vendor_complianceReports_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Vendor_complianceReports_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Vendor_complianceReports_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Vendor_complianceReports_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Vendor_complianceReports_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Vendor_complianceReports_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.VendorComplianceReportOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOVendorComplianceReportOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.VendorComplianceReportOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Vendor_riskAssessments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Vendor_riskAssessments_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Vendor_riskAssessments_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Vendor_riskAssessments_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Vendor_riskAssessments_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Vendor_riskAssessments_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Vendor_riskAssessments_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Vendor_riskAssessments_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Vendor_riskAssessments_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Vendor_riskAssessments_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Vendor_riskAssessments_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.VendorRiskAssessmentOrder, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOVendorRiskAssessmentOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentOrder(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.VendorRiskAssessmentOrder
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Viewer_organizations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Viewer_organizations_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Viewer_organizations_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Viewer_organizations_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Viewer_organizations_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Viewer_organizations_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Viewer_organizations_argsFirst(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first"))
|
|
if tmp, ok := rawArgs["first"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Viewer_organizations_argsAfter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after"))
|
|
if tmp, ok := rawArgs["after"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Viewer_organizations_argsLast(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*int, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last"))
|
|
if tmp, ok := rawArgs["last"]; ok {
|
|
return ec.unmarshalOInt2ᚖint(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *int
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Viewer_organizations_argsBefore(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*page.CursorKey, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before"))
|
|
if tmp, ok := rawArgs["before"]; ok {
|
|
return ec.unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *page.CursorKey
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Viewer_organizations_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.OrganizationOrder, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOOrganizationOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationOrder(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.OrganizationOrder
|
|
return zeroVal, 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 := ec.field___Directive_args_argsIncludeDeprecated(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["includeDeprecated"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field___Directive_args_argsIncludeDeprecated(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*bool, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
|
|
if tmp, ok := rawArgs["includeDeprecated"]; ok {
|
|
return ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *bool
|
|
return zeroVal, 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 := ec.field___Field_args_argsIncludeDeprecated(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["includeDeprecated"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field___Field_args_argsIncludeDeprecated(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*bool, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
|
|
if tmp, ok := rawArgs["includeDeprecated"]; ok {
|
|
return ec.unmarshalOBoolean2ᚖbool(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *bool
|
|
return zeroVal, 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 := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["includeDeprecated"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (bool, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
|
|
if tmp, ok := rawArgs["includeDeprecated"]; ok {
|
|
return ec.unmarshalOBoolean2bool(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal bool
|
|
return zeroVal, 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 := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["includeDeprecated"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field___Type_fields_argsIncludeDeprecated(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (bool, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
|
|
if tmp, ok := rawArgs["includeDeprecated"]; ok {
|
|
return ec.unmarshalOBoolean2bool(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal bool
|
|
return zeroVal, nil
|
|
}
|
|
|
|
// endregion ***************************** args.gotpl *****************************
|
|
|
|
// region ************************** directives.gotpl **************************
|
|
|
|
// endregion ************************** directives.gotpl **************************
|
|
|
|
// region **************************** field.gotpl *****************************
|
|
|
|
func (ec *executionContext) _AssignTaskPayload_task(ctx context.Context, field graphql.CollectedField, obj *types.AssignTaskPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_AssignTaskPayload_task(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Task, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Task)
|
|
fc.Result = res
|
|
return ec.marshalNTask2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTask(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_AssignTaskPayload_task(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "AssignTaskPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Task_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Task_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Task_description(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Task_state(ctx, field)
|
|
case "timeEstimate":
|
|
return ec.fieldContext_Task_timeEstimate(ctx, field)
|
|
case "assignedTo":
|
|
return ec.fieldContext_Task_assignedTo(ctx, field)
|
|
case "evidences":
|
|
return ec.fieldContext_Task_evidences(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Task_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Task_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Task", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ConfirmEmailPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.ConfirmEmailPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ConfirmEmailPayload_success(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Success, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ConfirmEmailPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ConfirmEmailPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Connector_id(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Connector_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Connector_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Connector",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Connector_name(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Connector_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Connector_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Connector",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Connector_type(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Connector_type(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Type, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Connector_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Connector",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Connector_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Connector_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Connector_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Connector",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Connector_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Connector_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Connector_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Connector",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ConnectorConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ConnectorConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ConnectorConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.ConnectorEdge)
|
|
fc.Result = res
|
|
return ec.marshalNConnectorEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConnectorEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ConnectorConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ConnectorConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_ConnectorEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_ConnectorEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ConnectorEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ConnectorConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ConnectorConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ConnectorConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ConnectorConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ConnectorConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ConnectorEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ConnectorEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ConnectorEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ConnectorEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ConnectorEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ConnectorEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ConnectorEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ConnectorEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Connector)
|
|
fc.Result = res
|
|
return ec.marshalNConnector2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConnector(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ConnectorEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ConnectorEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Connector_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Connector_name(ctx, field)
|
|
case "type":
|
|
return ec.fieldContext_Connector_type(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Connector_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Connector_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Connector", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Control_id(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Control_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Control",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Control_referenceId(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_referenceId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ReferenceID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Control_referenceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Control",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Control_name(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Control_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Control",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Control_description(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_description(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Description, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Control_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Control",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Control_mesures(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_mesures(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Control().Mesures(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.MesureOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.MesureConnection)
|
|
fc.Result = res
|
|
return ec.marshalNMesureConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Control_mesures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Control",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_MesureConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_MesureConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MesureConnection", field.Name)
|
|
},
|
|
}
|
|
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_Control_mesures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Control_policies(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_policies(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Control().Policies(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.PolicyOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PolicyConnection)
|
|
fc.Result = res
|
|
return ec.marshalNPolicyConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Control_policies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Control",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_PolicyConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_PolicyConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PolicyConnection", field.Name)
|
|
},
|
|
}
|
|
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_Control_policies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Control_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Control_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Control",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Control_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Control_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Control",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ControlConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ControlConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ControlConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.ControlEdge)
|
|
fc.Result = res
|
|
return ec.marshalNControlEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ControlConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ControlConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_ControlEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_ControlEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ControlEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ControlConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ControlConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ControlConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ControlConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ControlConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ControlEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ControlEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ControlEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ControlEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ControlEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ControlEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ControlEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ControlEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Control)
|
|
fc.Result = res
|
|
return ec.marshalNControl2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControl(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ControlEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ControlEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Control_id(ctx, field)
|
|
case "referenceId":
|
|
return ec.fieldContext_Control_referenceId(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Control_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Control_description(ctx, field)
|
|
case "mesures":
|
|
return ec.fieldContext_Control_mesures(ctx, field)
|
|
case "policies":
|
|
return ec.fieldContext_Control_policies(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Control_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Control_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Control", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateControlMesureMappingPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlMesureMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateControlMesureMappingPayload_success(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Success, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateControlMesureMappingPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateControlMesureMappingPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateControlPolicyMappingPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlPolicyMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateControlPolicyMappingPayload_success(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Success, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateControlPolicyMappingPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateControlPolicyMappingPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateEvidencePayload_evidenceEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateEvidencePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateEvidencePayload_evidenceEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.EvidenceEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.EvidenceEdge)
|
|
fc.Result = res
|
|
return ec.marshalNEvidenceEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateEvidencePayload_evidenceEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateEvidencePayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_EvidenceEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_EvidenceEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type EvidenceEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateFrameworkPayload_frameworkEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateFrameworkPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateFrameworkPayload_frameworkEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.FrameworkEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.FrameworkEdge)
|
|
fc.Result = res
|
|
return ec.marshalNFrameworkEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateFrameworkPayload_frameworkEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateFrameworkPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_FrameworkEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_FrameworkEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type FrameworkEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateMesurePayload_mesureEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateMesurePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateMesurePayload_mesureEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.MesureEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.MesureEdge)
|
|
fc.Result = res
|
|
return ec.marshalNMesureEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateMesurePayload_mesureEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateMesurePayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_MesureEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_MesureEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MesureEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateOrganizationPayload_organizationEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateOrganizationPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateOrganizationPayload_organizationEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.OrganizationEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.OrganizationEdge)
|
|
fc.Result = res
|
|
return ec.marshalNOrganizationEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateOrganizationPayload_organizationEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateOrganizationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_OrganizationEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_OrganizationEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type OrganizationEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreatePeoplePayload_peopleEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreatePeoplePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreatePeoplePayload_peopleEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PeopleEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PeopleEdge)
|
|
fc.Result = res
|
|
return ec.marshalNPeopleEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeopleEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreatePeoplePayload_peopleEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreatePeoplePayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_PeopleEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_PeopleEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PeopleEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreatePolicyPayload_policyEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreatePolicyPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreatePolicyPayload_policyEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PolicyEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PolicyEdge)
|
|
fc.Result = res
|
|
return ec.marshalNPolicyEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreatePolicyPayload_policyEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreatePolicyPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_PolicyEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_PolicyEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PolicyEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateRiskMesureMappingPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskMesureMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateRiskMesureMappingPayload_success(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Success, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateRiskMesureMappingPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateRiskMesureMappingPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateRiskPayload_riskEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateRiskPayload_riskEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.RiskEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.RiskEdge)
|
|
fc.Result = res
|
|
return ec.marshalNRiskEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateRiskPayload_riskEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateRiskPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_RiskEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_RiskEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type RiskEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateRiskPolicyMappingPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskPolicyMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateRiskPolicyMappingPayload_success(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Success, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateRiskPolicyMappingPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateRiskPolicyMappingPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateTaskPayload_taskEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateTaskPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateTaskPayload_taskEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.TaskEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.TaskEdge)
|
|
fc.Result = res
|
|
return ec.marshalNTaskEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateTaskPayload_taskEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateTaskPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_TaskEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_TaskEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type TaskEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateVendorPayload_vendorEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateVendorPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateVendorPayload_vendorEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.VendorEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.VendorEdge)
|
|
fc.Result = res
|
|
return ec.marshalNVendorEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateVendorPayload_vendorEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateVendorPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_VendorEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_VendorEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateVendorRiskAssessmentPayload_vendorRiskAssessmentEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateVendorRiskAssessmentPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateVendorRiskAssessmentPayload_vendorRiskAssessmentEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.VendorRiskAssessmentEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.VendorRiskAssessmentEdge)
|
|
fc.Result = res
|
|
return ec.marshalNVendorRiskAssessmentEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateVendorRiskAssessmentPayload_vendorRiskAssessmentEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateVendorRiskAssessmentPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_VendorRiskAssessmentEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_VendorRiskAssessmentEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorRiskAssessmentEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteControlMesureMappingPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlMesureMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteControlMesureMappingPayload_success(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Success, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteControlMesureMappingPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteControlMesureMappingPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteControlPolicyMappingPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlPolicyMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteControlPolicyMappingPayload_success(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Success, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteControlPolicyMappingPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteControlPolicyMappingPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteEvidencePayload_deletedEvidenceId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteEvidencePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteEvidencePayload_deletedEvidenceId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedEvidenceID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteEvidencePayload_deletedEvidenceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteEvidencePayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteFrameworkPayload_deletedFrameworkId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteFrameworkPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteFrameworkPayload_deletedFrameworkId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedFrameworkID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteFrameworkPayload_deletedFrameworkId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteFrameworkPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteOrganizationPayload_deletedOrganizationId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteOrganizationPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteOrganizationPayload_deletedOrganizationId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedOrganizationID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteOrganizationPayload_deletedOrganizationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteOrganizationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeletePeoplePayload_deletedPeopleId(ctx context.Context, field graphql.CollectedField, obj *types.DeletePeoplePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeletePeoplePayload_deletedPeopleId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedPeopleID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeletePeoplePayload_deletedPeopleId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeletePeoplePayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeletePolicyPayload_deletedPolicyId(ctx context.Context, field graphql.CollectedField, obj *types.DeletePolicyPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeletePolicyPayload_deletedPolicyId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedPolicyID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeletePolicyPayload_deletedPolicyId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeletePolicyPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteRiskMesureMappingPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskMesureMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteRiskMesureMappingPayload_success(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Success, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteRiskMesureMappingPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteRiskMesureMappingPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteRiskPayload_deletedRiskId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteRiskPayload_deletedRiskId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedRiskID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteRiskPayload_deletedRiskId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteRiskPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteRiskPolicyMappingPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskPolicyMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteRiskPolicyMappingPayload_success(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Success, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteRiskPolicyMappingPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteRiskPolicyMappingPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteTaskPayload_deletedTaskId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteTaskPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteTaskPayload_deletedTaskId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedTaskID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteTaskPayload_deletedTaskId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteTaskPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteVendorComplianceReportPayload_deletedVendorComplianceReportId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteVendorComplianceReportPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteVendorComplianceReportPayload_deletedVendorComplianceReportId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedVendorComplianceReportID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteVendorComplianceReportPayload_deletedVendorComplianceReportId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteVendorComplianceReportPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteVendorPayload_deletedVendorId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteVendorPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteVendorPayload_deletedVendorId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedVendorID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteVendorPayload_deletedVendorId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteVendorPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Evidence_id(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Evidence_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Evidence_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Evidence",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Evidence_fileUrl(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Evidence_fileUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Evidence().FileURL(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Evidence_fileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Evidence",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Evidence_mimeType(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Evidence_mimeType(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.MimeType, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Evidence_mimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Evidence",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Evidence_size(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Evidence_size(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Size, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Evidence_size(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Evidence",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Evidence_state(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Evidence_state(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.State, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(coredata.EvidenceState)
|
|
fc.Result = res
|
|
return ec.marshalNEvidenceState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceState(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Evidence_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Evidence",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type EvidenceState does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Evidence_type(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Evidence_type(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Type, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(coredata.EvidenceType)
|
|
fc.Result = res
|
|
return ec.marshalNEvidenceType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceType(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Evidence_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Evidence",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type EvidenceType does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Evidence_filename(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Evidence_filename(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Filename, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Evidence_filename(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Evidence",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Evidence_url(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Evidence_url(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.URL, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Evidence_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Evidence",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Evidence_description(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Evidence_description(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Description, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Evidence_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Evidence",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Evidence_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Evidence_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Evidence_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Evidence",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Evidence_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Evidence_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Evidence_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Evidence",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _EvidenceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.EvidenceConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_EvidenceConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.EvidenceEdge)
|
|
fc.Result = res
|
|
return ec.marshalNEvidenceEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_EvidenceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "EvidenceConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_EvidenceEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_EvidenceEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type EvidenceEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _EvidenceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.EvidenceConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_EvidenceConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_EvidenceConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "EvidenceConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _EvidenceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.EvidenceEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_EvidenceEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_EvidenceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "EvidenceEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _EvidenceEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.EvidenceEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_EvidenceEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Evidence)
|
|
fc.Result = res
|
|
return ec.marshalNEvidence2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidence(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_EvidenceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "EvidenceEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Evidence_id(ctx, field)
|
|
case "fileUrl":
|
|
return ec.fieldContext_Evidence_fileUrl(ctx, field)
|
|
case "mimeType":
|
|
return ec.fieldContext_Evidence_mimeType(ctx, field)
|
|
case "size":
|
|
return ec.fieldContext_Evidence_size(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Evidence_state(ctx, field)
|
|
case "type":
|
|
return ec.fieldContext_Evidence_type(ctx, field)
|
|
case "filename":
|
|
return ec.fieldContext_Evidence_filename(ctx, field)
|
|
case "url":
|
|
return ec.fieldContext_Evidence_url(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Evidence_description(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Evidence_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Evidence_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Evidence", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Framework_id(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Framework_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Framework_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Framework",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Framework_name(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Framework_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Framework_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Framework",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Framework_description(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Framework_description(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Description, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Framework_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Framework",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Framework_controls(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Framework_controls(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Framework().Controls(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ControlOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.ControlConnection)
|
|
fc.Result = res
|
|
return ec.marshalNControlConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Framework_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Framework",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_ControlConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_ControlConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ControlConnection", field.Name)
|
|
},
|
|
}
|
|
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_Framework_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Framework_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Framework_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Framework_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Framework",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Framework_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Framework_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Framework_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Framework",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _FrameworkConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.FrameworkConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_FrameworkConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.FrameworkEdge)
|
|
fc.Result = res
|
|
return ec.marshalNFrameworkEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_FrameworkConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "FrameworkConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_FrameworkEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_FrameworkEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type FrameworkEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _FrameworkConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.FrameworkConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_FrameworkConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_FrameworkConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "FrameworkConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _FrameworkEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.FrameworkEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_FrameworkEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_FrameworkEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "FrameworkEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _FrameworkEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.FrameworkEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_FrameworkEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Framework)
|
|
fc.Result = res
|
|
return ec.marshalNFramework2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFramework(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_FrameworkEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "FrameworkEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Framework_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Framework_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Framework_description(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Framework_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Framework_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Framework_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Framework", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _FulfillEvidencePayload_evidenceEdge(ctx context.Context, field graphql.CollectedField, obj *types.FulfillEvidencePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_FulfillEvidencePayload_evidenceEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.EvidenceEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.EvidenceEdge)
|
|
fc.Result = res
|
|
return ec.marshalNEvidenceEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_FulfillEvidencePayload_evidenceEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "FulfillEvidencePayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_EvidenceEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_EvidenceEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type EvidenceEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ImportFrameworkPayload_frameworkEdge(ctx context.Context, field graphql.CollectedField, obj *types.ImportFrameworkPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ImportFrameworkPayload_frameworkEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.FrameworkEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.FrameworkEdge)
|
|
fc.Result = res
|
|
return ec.marshalNFrameworkEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ImportFrameworkPayload_frameworkEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ImportFrameworkPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_FrameworkEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_FrameworkEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type FrameworkEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ImportMesurePayload_mesureEdges(ctx context.Context, field graphql.CollectedField, obj *types.ImportMesurePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ImportMesurePayload_mesureEdges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.MesureEdges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.MesureEdge)
|
|
fc.Result = res
|
|
return ec.marshalNMesureEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ImportMesurePayload_mesureEdges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ImportMesurePayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_MesureEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_MesureEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MesureEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _InviteUserPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.InviteUserPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_InviteUserPayload_success(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Success, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_InviteUserPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "InviteUserPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mesure_id(ctx context.Context, field graphql.CollectedField, obj *types.Mesure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mesure_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mesure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mesure",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mesure_category(ctx context.Context, field graphql.CollectedField, obj *types.Mesure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mesure_category(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Category, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mesure_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mesure",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mesure_name(ctx context.Context, field graphql.CollectedField, obj *types.Mesure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mesure_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mesure_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mesure",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mesure_description(ctx context.Context, field graphql.CollectedField, obj *types.Mesure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mesure_description(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Description, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mesure_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mesure",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mesure_state(ctx context.Context, field graphql.CollectedField, obj *types.Mesure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mesure_state(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.State, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(coredata.MesureState)
|
|
fc.Result = res
|
|
return ec.marshalNMesureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mesure_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mesure",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type MesureState does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mesure_importance(ctx context.Context, field graphql.CollectedField, obj *types.Mesure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mesure_importance(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Importance, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(coredata.MesureImportance)
|
|
fc.Result = res
|
|
return ec.marshalNMesureImportance2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mesure_importance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mesure",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type MesureImportance does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mesure_tasks(ctx context.Context, field graphql.CollectedField, obj *types.Mesure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mesure_tasks(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mesure().Tasks(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.TaskOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.TaskConnection)
|
|
fc.Result = res
|
|
return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mesure_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mesure",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_TaskConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_TaskConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type TaskConnection", field.Name)
|
|
},
|
|
}
|
|
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_Mesure_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mesure_risks(ctx context.Context, field graphql.CollectedField, obj *types.Mesure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mesure_risks(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mesure().Risks(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.RiskOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.RiskConnection)
|
|
fc.Result = res
|
|
return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mesure_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mesure",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_RiskConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_RiskConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type RiskConnection", field.Name)
|
|
},
|
|
}
|
|
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_Mesure_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mesure_controls(ctx context.Context, field graphql.CollectedField, obj *types.Mesure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mesure_controls(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mesure().Controls(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ControlOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.ControlConnection)
|
|
fc.Result = res
|
|
return ec.marshalNControlConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mesure_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mesure",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_ControlConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_ControlConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ControlConnection", field.Name)
|
|
},
|
|
}
|
|
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_Mesure_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mesure_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Mesure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mesure_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mesure_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mesure",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mesure_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Mesure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mesure_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mesure_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mesure",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _MesureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.MesureConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_MesureConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.MesureEdge)
|
|
fc.Result = res
|
|
return ec.marshalNMesureEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_MesureConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "MesureConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_MesureEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_MesureEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MesureEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _MesureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.MesureConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_MesureConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_MesureConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "MesureConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _MesureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.MesureEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_MesureEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_MesureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "MesureEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _MesureEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.MesureEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_MesureEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Mesure)
|
|
fc.Result = res
|
|
return ec.marshalNMesure2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesure(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_MesureEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "MesureEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Mesure_id(ctx, field)
|
|
case "category":
|
|
return ec.fieldContext_Mesure_category(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Mesure_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Mesure_description(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Mesure_state(ctx, field)
|
|
case "importance":
|
|
return ec.fieldContext_Mesure_importance(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Mesure_tasks(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Mesure_risks(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Mesure_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Mesure_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Mesure_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Mesure", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createOrganization(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreateOrganization(rctx, fc.Args["input"].(types.CreateOrganizationInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreateOrganizationPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateOrganizationPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateOrganizationPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createOrganization(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) {
|
|
switch field.Name {
|
|
case "organizationEdge":
|
|
return ec.fieldContext_CreateOrganizationPayload_organizationEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateOrganizationPayload", field.Name)
|
|
},
|
|
}
|
|
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_createOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateOrganization(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().UpdateOrganization(rctx, fc.Args["input"].(types.UpdateOrganizationInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.UpdateOrganizationPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateOrganizationPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateOrganizationPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateOrganization(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) {
|
|
switch field.Name {
|
|
case "organization":
|
|
return ec.fieldContext_UpdateOrganizationPayload_organization(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateOrganizationPayload", field.Name)
|
|
},
|
|
}
|
|
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_updateOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteOrganization(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().DeleteOrganization(rctx, fc.Args["input"].(types.DeleteOrganizationInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.DeleteOrganizationPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteOrganizationPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteOrganizationPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteOrganization(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) {
|
|
switch field.Name {
|
|
case "deletedOrganizationId":
|
|
return ec.fieldContext_DeleteOrganizationPayload_deletedOrganizationId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteOrganizationPayload", field.Name)
|
|
},
|
|
}
|
|
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_deleteOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_confirmEmail(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_confirmEmail(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().ConfirmEmail(rctx, fc.Args["input"].(types.ConfirmEmailInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.ConfirmEmailPayload)
|
|
fc.Result = res
|
|
return ec.marshalNConfirmEmailPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConfirmEmailPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_confirmEmail(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) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_ConfirmEmailPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ConfirmEmailPayload", field.Name)
|
|
},
|
|
}
|
|
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_confirmEmail_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_inviteUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_inviteUser(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().InviteUser(rctx, fc.Args["input"].(types.InviteUserInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.InviteUserPayload)
|
|
fc.Result = res
|
|
return ec.marshalNInviteUserPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐInviteUserPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_inviteUser(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) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_InviteUserPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type InviteUserPayload", field.Name)
|
|
},
|
|
}
|
|
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_inviteUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_removeUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_removeUser(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().RemoveUser(rctx, fc.Args["input"].(types.RemoveUserInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.RemoveUserPayload)
|
|
fc.Result = res
|
|
return ec.marshalNRemoveUserPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRemoveUserPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_removeUser(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) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_RemoveUserPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type RemoveUserPayload", field.Name)
|
|
},
|
|
}
|
|
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_removeUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createPeople(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createPeople(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreatePeople(rctx, fc.Args["input"].(types.CreatePeopleInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreatePeoplePayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreatePeoplePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreatePeoplePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createPeople(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) {
|
|
switch field.Name {
|
|
case "peopleEdge":
|
|
return ec.fieldContext_CreatePeoplePayload_peopleEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreatePeoplePayload", field.Name)
|
|
},
|
|
}
|
|
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_createPeople_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updatePeople(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updatePeople(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().UpdatePeople(rctx, fc.Args["input"].(types.UpdatePeopleInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.UpdatePeoplePayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdatePeoplePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdatePeoplePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updatePeople(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) {
|
|
switch field.Name {
|
|
case "people":
|
|
return ec.fieldContext_UpdatePeoplePayload_people(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdatePeoplePayload", field.Name)
|
|
},
|
|
}
|
|
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_updatePeople_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deletePeople(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deletePeople(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().DeletePeople(rctx, fc.Args["input"].(types.DeletePeopleInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.DeletePeoplePayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeletePeoplePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeletePeoplePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deletePeople(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) {
|
|
switch field.Name {
|
|
case "deletedPeopleId":
|
|
return ec.fieldContext_DeletePeoplePayload_deletedPeopleId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeletePeoplePayload", field.Name)
|
|
},
|
|
}
|
|
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_deletePeople_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createVendor(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createVendor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreateVendor(rctx, fc.Args["input"].(types.CreateVendorInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreateVendorPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateVendorPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createVendor(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) {
|
|
switch field.Name {
|
|
case "vendorEdge":
|
|
return ec.fieldContext_CreateVendorPayload_vendorEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateVendorPayload", field.Name)
|
|
},
|
|
}
|
|
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_createVendor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateVendor(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateVendor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().UpdateVendor(rctx, fc.Args["input"].(types.UpdateVendorInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.UpdateVendorPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateVendorPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateVendor(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) {
|
|
switch field.Name {
|
|
case "vendor":
|
|
return ec.fieldContext_UpdateVendorPayload_vendor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateVendorPayload", field.Name)
|
|
},
|
|
}
|
|
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_updateVendor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteVendor(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteVendor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().DeleteVendor(rctx, fc.Args["input"].(types.DeleteVendorInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.DeleteVendorPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteVendorPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteVendor(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) {
|
|
switch field.Name {
|
|
case "deletedVendorId":
|
|
return ec.fieldContext_DeleteVendorPayload_deletedVendorId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteVendorPayload", field.Name)
|
|
},
|
|
}
|
|
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_deleteVendor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createFramework(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreateFramework(rctx, fc.Args["input"].(types.CreateFrameworkInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreateFrameworkPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateFrameworkPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateFrameworkPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createFramework(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) {
|
|
switch field.Name {
|
|
case "frameworkEdge":
|
|
return ec.fieldContext_CreateFrameworkPayload_frameworkEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateFrameworkPayload", field.Name)
|
|
},
|
|
}
|
|
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_createFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateFramework(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().UpdateFramework(rctx, fc.Args["input"].(types.UpdateFrameworkInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.UpdateFrameworkPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateFrameworkPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateFrameworkPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateFramework(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) {
|
|
switch field.Name {
|
|
case "framework":
|
|
return ec.fieldContext_UpdateFrameworkPayload_framework(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateFrameworkPayload", field.Name)
|
|
},
|
|
}
|
|
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_updateFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_importFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_importFramework(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().ImportFramework(rctx, fc.Args["input"].(types.ImportFrameworkInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.ImportFrameworkPayload)
|
|
fc.Result = res
|
|
return ec.marshalNImportFrameworkPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportFrameworkPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_importFramework(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) {
|
|
switch field.Name {
|
|
case "frameworkEdge":
|
|
return ec.fieldContext_ImportFrameworkPayload_frameworkEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ImportFrameworkPayload", field.Name)
|
|
},
|
|
}
|
|
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_importFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteFramework(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().DeleteFramework(rctx, fc.Args["input"].(types.DeleteFrameworkInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.DeleteFrameworkPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteFrameworkPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteFrameworkPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteFramework(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) {
|
|
switch field.Name {
|
|
case "deletedFrameworkId":
|
|
return ec.fieldContext_DeleteFrameworkPayload_deletedFrameworkId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteFrameworkPayload", field.Name)
|
|
},
|
|
}
|
|
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_deleteFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createMesure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createMesure(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreateMesure(rctx, fc.Args["input"].(types.CreateMesureInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreateMesurePayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateMesurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMesurePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createMesure(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) {
|
|
switch field.Name {
|
|
case "mesureEdge":
|
|
return ec.fieldContext_CreateMesurePayload_mesureEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateMesurePayload", field.Name)
|
|
},
|
|
}
|
|
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_createMesure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateMesure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateMesure(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().UpdateMesure(rctx, fc.Args["input"].(types.UpdateMesureInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.UpdateMesurePayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateMesurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMesurePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateMesure(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) {
|
|
switch field.Name {
|
|
case "mesure":
|
|
return ec.fieldContext_UpdateMesurePayload_mesure(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateMesurePayload", field.Name)
|
|
},
|
|
}
|
|
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_updateMesure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_importMesure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_importMesure(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().ImportMesure(rctx, fc.Args["input"].(types.ImportMesureInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.ImportMesurePayload)
|
|
fc.Result = res
|
|
return ec.marshalNImportMesurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMesurePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_importMesure(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) {
|
|
switch field.Name {
|
|
case "mesureEdges":
|
|
return ec.fieldContext_ImportMesurePayload_mesureEdges(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ImportMesurePayload", field.Name)
|
|
},
|
|
}
|
|
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_importMesure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createControlMesureMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createControlMesureMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreateControlMesureMapping(rctx, fc.Args["input"].(types.CreateControlMesureMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreateControlMesureMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateControlMesureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMesureMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createControlMesureMapping(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) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_CreateControlMesureMappingPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateControlMesureMappingPayload", field.Name)
|
|
},
|
|
}
|
|
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_createControlMesureMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createControlPolicyMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createControlPolicyMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreateControlPolicyMapping(rctx, fc.Args["input"].(types.CreateControlPolicyMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreateControlPolicyMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateControlPolicyMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlPolicyMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createControlPolicyMapping(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) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_CreateControlPolicyMappingPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateControlPolicyMappingPayload", field.Name)
|
|
},
|
|
}
|
|
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_createControlPolicyMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteControlMesureMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteControlMesureMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().DeleteControlMesureMapping(rctx, fc.Args["input"].(types.DeleteControlMesureMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.DeleteControlMesureMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteControlMesureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMesureMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteControlMesureMapping(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) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_DeleteControlMesureMappingPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteControlMesureMappingPayload", field.Name)
|
|
},
|
|
}
|
|
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_deleteControlMesureMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteControlPolicyMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteControlPolicyMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().DeleteControlPolicyMapping(rctx, fc.Args["input"].(types.DeleteControlPolicyMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.DeleteControlPolicyMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteControlPolicyMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlPolicyMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteControlPolicyMapping(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) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_DeleteControlPolicyMappingPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteControlPolicyMappingPayload", field.Name)
|
|
},
|
|
}
|
|
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_deleteControlPolicyMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createTask(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreateTask(rctx, fc.Args["input"].(types.CreateTaskInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreateTaskPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateTaskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTaskPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createTask(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) {
|
|
switch field.Name {
|
|
case "taskEdge":
|
|
return ec.fieldContext_CreateTaskPayload_taskEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateTaskPayload", field.Name)
|
|
},
|
|
}
|
|
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_createTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateTask(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().UpdateTask(rctx, fc.Args["input"].(types.UpdateTaskInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.UpdateTaskPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateTaskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTaskPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateTask(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) {
|
|
switch field.Name {
|
|
case "task":
|
|
return ec.fieldContext_UpdateTaskPayload_task(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateTaskPayload", field.Name)
|
|
},
|
|
}
|
|
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_updateTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteTask(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().DeleteTask(rctx, fc.Args["input"].(types.DeleteTaskInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.DeleteTaskPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteTaskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTaskPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteTask(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) {
|
|
switch field.Name {
|
|
case "deletedTaskId":
|
|
return ec.fieldContext_DeleteTaskPayload_deletedTaskId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteTaskPayload", field.Name)
|
|
},
|
|
}
|
|
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_deleteTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_assignTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_assignTask(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().AssignTask(rctx, fc.Args["input"].(types.AssignTaskInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.AssignTaskPayload)
|
|
fc.Result = res
|
|
return ec.marshalNAssignTaskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssignTaskPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_assignTask(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) {
|
|
switch field.Name {
|
|
case "task":
|
|
return ec.fieldContext_AssignTaskPayload_task(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type AssignTaskPayload", field.Name)
|
|
},
|
|
}
|
|
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_assignTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_unassignTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_unassignTask(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().UnassignTask(rctx, fc.Args["input"].(types.UnassignTaskInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.UnassignTaskPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUnassignTaskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUnassignTaskPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_unassignTask(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) {
|
|
switch field.Name {
|
|
case "task":
|
|
return ec.fieldContext_UnassignTaskPayload_task(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UnassignTaskPayload", field.Name)
|
|
},
|
|
}
|
|
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_unassignTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createRisk(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreateRisk(rctx, fc.Args["input"].(types.CreateRiskInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreateRiskPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateRiskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createRisk(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) {
|
|
switch field.Name {
|
|
case "riskEdge":
|
|
return ec.fieldContext_CreateRiskPayload_riskEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateRiskPayload", field.Name)
|
|
},
|
|
}
|
|
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_createRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateRisk(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().UpdateRisk(rctx, fc.Args["input"].(types.UpdateRiskInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.UpdateRiskPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateRiskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRiskPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateRisk(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) {
|
|
switch field.Name {
|
|
case "risk":
|
|
return ec.fieldContext_UpdateRiskPayload_risk(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateRiskPayload", field.Name)
|
|
},
|
|
}
|
|
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_updateRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteRisk(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().DeleteRisk(rctx, fc.Args["input"].(types.DeleteRiskInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.DeleteRiskPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteRiskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteRisk(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) {
|
|
switch field.Name {
|
|
case "deletedRiskId":
|
|
return ec.fieldContext_DeleteRiskPayload_deletedRiskId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteRiskPayload", field.Name)
|
|
},
|
|
}
|
|
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_deleteRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createRiskMesureMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createRiskMesureMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreateRiskMesureMapping(rctx, fc.Args["input"].(types.CreateRiskMesureMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreateRiskMesureMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateRiskMesureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMesureMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createRiskMesureMapping(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) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_CreateRiskMesureMappingPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateRiskMesureMappingPayload", field.Name)
|
|
},
|
|
}
|
|
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_createRiskMesureMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteRiskMesureMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteRiskMesureMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().DeleteRiskMesureMapping(rctx, fc.Args["input"].(types.DeleteRiskMesureMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.DeleteRiskMesureMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteRiskMesureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMesureMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteRiskMesureMapping(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) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_DeleteRiskMesureMappingPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteRiskMesureMappingPayload", field.Name)
|
|
},
|
|
}
|
|
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_deleteRiskMesureMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createRiskPolicyMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createRiskPolicyMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreateRiskPolicyMapping(rctx, fc.Args["input"].(types.CreateRiskPolicyMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreateRiskPolicyMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateRiskPolicyMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskPolicyMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createRiskPolicyMapping(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) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_CreateRiskPolicyMappingPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateRiskPolicyMappingPayload", field.Name)
|
|
},
|
|
}
|
|
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_createRiskPolicyMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteRiskPolicyMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteRiskPolicyMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().DeleteRiskPolicyMapping(rctx, fc.Args["input"].(types.DeleteRiskPolicyMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.DeleteRiskPolicyMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteRiskPolicyMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskPolicyMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteRiskPolicyMapping(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) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_DeleteRiskPolicyMappingPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteRiskPolicyMappingPayload", field.Name)
|
|
},
|
|
}
|
|
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_deleteRiskPolicyMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_requestEvidence(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_requestEvidence(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().RequestEvidence(rctx, fc.Args["input"].(types.RequestEvidenceInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.RequestEvidencePayload)
|
|
fc.Result = res
|
|
return ec.marshalNRequestEvidencePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestEvidencePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_requestEvidence(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) {
|
|
switch field.Name {
|
|
case "evidenceEdge":
|
|
return ec.fieldContext_RequestEvidencePayload_evidenceEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type RequestEvidencePayload", field.Name)
|
|
},
|
|
}
|
|
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_requestEvidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_fulfillEvidence(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_fulfillEvidence(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().FulfillEvidence(rctx, fc.Args["input"].(types.FulfillEvidenceInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.FulfillEvidencePayload)
|
|
fc.Result = res
|
|
return ec.marshalNFulfillEvidencePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFulfillEvidencePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_fulfillEvidence(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) {
|
|
switch field.Name {
|
|
case "evidenceEdge":
|
|
return ec.fieldContext_FulfillEvidencePayload_evidenceEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type FulfillEvidencePayload", field.Name)
|
|
},
|
|
}
|
|
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_fulfillEvidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createEvidence(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createEvidence(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreateEvidence(rctx, fc.Args["input"].(types.CreateEvidenceInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreateEvidencePayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateEvidencePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateEvidencePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createEvidence(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) {
|
|
switch field.Name {
|
|
case "evidenceEdge":
|
|
return ec.fieldContext_CreateEvidencePayload_evidenceEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateEvidencePayload", field.Name)
|
|
},
|
|
}
|
|
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_createEvidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteEvidence(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteEvidence(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().DeleteEvidence(rctx, fc.Args["input"].(types.DeleteEvidenceInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.DeleteEvidencePayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteEvidencePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteEvidencePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteEvidence(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) {
|
|
switch field.Name {
|
|
case "deletedEvidenceId":
|
|
return ec.fieldContext_DeleteEvidencePayload_deletedEvidenceId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteEvidencePayload", field.Name)
|
|
},
|
|
}
|
|
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_deleteEvidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_uploadVendorComplianceReport(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_uploadVendorComplianceReport(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().UploadVendorComplianceReport(rctx, fc.Args["input"].(types.UploadVendorComplianceReportInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.UploadVendorComplianceReportPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUploadVendorComplianceReportPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorComplianceReportPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_uploadVendorComplianceReport(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) {
|
|
switch field.Name {
|
|
case "vendorComplianceReportEdge":
|
|
return ec.fieldContext_UploadVendorComplianceReportPayload_vendorComplianceReportEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UploadVendorComplianceReportPayload", field.Name)
|
|
},
|
|
}
|
|
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_uploadVendorComplianceReport_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteVendorComplianceReport(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteVendorComplianceReport(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().DeleteVendorComplianceReport(rctx, fc.Args["input"].(types.DeleteVendorComplianceReportInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.DeleteVendorComplianceReportPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteVendorComplianceReportPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorComplianceReportPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteVendorComplianceReport(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) {
|
|
switch field.Name {
|
|
case "deletedVendorComplianceReportId":
|
|
return ec.fieldContext_DeleteVendorComplianceReportPayload_deletedVendorComplianceReportId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteVendorComplianceReportPayload", field.Name)
|
|
},
|
|
}
|
|
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_deleteVendorComplianceReport_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createPolicy(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreatePolicy(rctx, fc.Args["input"].(types.CreatePolicyInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreatePolicyPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreatePolicyPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreatePolicyPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createPolicy(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) {
|
|
switch field.Name {
|
|
case "policyEdge":
|
|
return ec.fieldContext_CreatePolicyPayload_policyEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreatePolicyPayload", field.Name)
|
|
},
|
|
}
|
|
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_createPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updatePolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updatePolicy(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().UpdatePolicy(rctx, fc.Args["input"].(types.UpdatePolicyInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.UpdatePolicyPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdatePolicyPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdatePolicyPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updatePolicy(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) {
|
|
switch field.Name {
|
|
case "policy":
|
|
return ec.fieldContext_UpdatePolicyPayload_policy(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdatePolicyPayload", field.Name)
|
|
},
|
|
}
|
|
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_updatePolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deletePolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deletePolicy(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().DeletePolicy(rctx, fc.Args["input"].(types.DeletePolicyInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.DeletePolicyPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeletePolicyPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeletePolicyPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deletePolicy(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) {
|
|
switch field.Name {
|
|
case "deletedPolicyId":
|
|
return ec.fieldContext_DeletePolicyPayload_deletedPolicyId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeletePolicyPayload", field.Name)
|
|
},
|
|
}
|
|
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_deletePolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createVendorRiskAssessment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createVendorRiskAssessment(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Mutation().CreateVendorRiskAssessment(rctx, fc.Args["input"].(types.CreateVendorRiskAssessmentInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.CreateVendorRiskAssessmentPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateVendorRiskAssessmentPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorRiskAssessmentPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createVendorRiskAssessment(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) {
|
|
switch field.Name {
|
|
case "vendorRiskAssessmentEdge":
|
|
return ec.fieldContext_CreateVendorRiskAssessmentPayload_vendorRiskAssessmentEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateVendorRiskAssessmentPayload", field.Name)
|
|
},
|
|
}
|
|
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_createVendorRiskAssessment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_id(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_name(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_logoUrl(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_logoUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Organization().LogoURL(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_logoUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_users(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_users(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Organization().Users(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.UserOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.UserConnection)
|
|
fc.Result = res
|
|
return ec.marshalNUserConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUserConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_UserConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_UserConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UserConnection", field.Name)
|
|
},
|
|
}
|
|
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_Organization_users_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_connectors(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_connectors(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Organization().Connectors(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ConnectorOrder))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.ConnectorConnection)
|
|
fc.Result = res
|
|
return ec.marshalNConnectorConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConnectorConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_connectors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_ConnectorConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_ConnectorConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ConnectorConnection", field.Name)
|
|
},
|
|
}
|
|
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_Organization_connectors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_frameworks(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_frameworks(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Organization().Frameworks(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.FrameworkOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.FrameworkConnection)
|
|
fc.Result = res
|
|
return ec.marshalNFrameworkConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_frameworks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_FrameworkConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_FrameworkConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type FrameworkConnection", field.Name)
|
|
},
|
|
}
|
|
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_Organization_frameworks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_vendors(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_vendors(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Organization().Vendors(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.VendorOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.VendorConnection)
|
|
fc.Result = res
|
|
return ec.marshalNVendorConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_vendors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_VendorConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_VendorConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorConnection", field.Name)
|
|
},
|
|
}
|
|
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_Organization_vendors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_peoples(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_peoples(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Organization().Peoples(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.PeopleOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PeopleConnection)
|
|
fc.Result = res
|
|
return ec.marshalNPeopleConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeopleConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_peoples(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_PeopleConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_PeopleConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PeopleConnection", field.Name)
|
|
},
|
|
}
|
|
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_Organization_peoples_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_policies(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_policies(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Organization().Policies(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.PolicyOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PolicyConnection)
|
|
fc.Result = res
|
|
return ec.marshalNPolicyConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_policies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_PolicyConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_PolicyConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PolicyConnection", field.Name)
|
|
},
|
|
}
|
|
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_Organization_policies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_mesures(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_mesures(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Organization().Mesures(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.MesureOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.MesureConnection)
|
|
fc.Result = res
|
|
return ec.marshalNMesureConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_mesures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_MesureConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_MesureConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MesureConnection", field.Name)
|
|
},
|
|
}
|
|
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_Organization_mesures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_risks(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_risks(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Organization().Risks(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.RiskOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.RiskConnection)
|
|
fc.Result = res
|
|
return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_RiskConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_RiskConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type RiskConnection", field.Name)
|
|
},
|
|
}
|
|
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_Organization_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _OrganizationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.OrganizationConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_OrganizationConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.OrganizationEdge)
|
|
fc.Result = res
|
|
return ec.marshalNOrganizationEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_OrganizationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "OrganizationConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_OrganizationEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_OrganizationEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type OrganizationEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _OrganizationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.OrganizationConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_OrganizationConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_OrganizationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "OrganizationConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _OrganizationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.OrganizationEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_OrganizationEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_OrganizationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "OrganizationEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _OrganizationEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.OrganizationEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_OrganizationEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Organization)
|
|
fc.Result = res
|
|
return ec.marshalNOrganization2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_OrganizationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "OrganizationEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Organization_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Organization_name(ctx, field)
|
|
case "logoUrl":
|
|
return ec.fieldContext_Organization_logoUrl(ctx, field)
|
|
case "users":
|
|
return ec.fieldContext_Organization_users(ctx, field)
|
|
case "connectors":
|
|
return ec.fieldContext_Organization_connectors(ctx, field)
|
|
case "frameworks":
|
|
return ec.fieldContext_Organization_frameworks(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "policies":
|
|
return ec.fieldContext_Organization_policies(ctx, field)
|
|
case "mesures":
|
|
return ec.fieldContext_Organization_mesures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Organization_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Organization_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.HasNextPage, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PageInfo",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.HasPreviousPage, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PageInfo",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.StartCursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PageInfo",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.EndCursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PageInfo",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _People_id(ctx context.Context, field graphql.CollectedField, obj *types.People) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_People_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_People_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "People",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _People_fullName(ctx context.Context, field graphql.CollectedField, obj *types.People) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_People_fullName(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.FullName, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_People_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "People",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _People_primaryEmailAddress(ctx context.Context, field graphql.CollectedField, obj *types.People) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_People_primaryEmailAddress(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PrimaryEmailAddress, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_People_primaryEmailAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "People",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _People_additionalEmailAddresses(ctx context.Context, field graphql.CollectedField, obj *types.People) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_People_additionalEmailAddresses(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.AdditionalEmailAddresses, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]string)
|
|
fc.Result = res
|
|
return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_People_additionalEmailAddresses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "People",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _People_kind(ctx context.Context, field graphql.CollectedField, obj *types.People) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_People_kind(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Kind, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(coredata.PeopleKind)
|
|
fc.Result = res
|
|
return ec.marshalNPeopleKind2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_People_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "People",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type PeopleKind does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _People_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.People) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_People_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_People_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "People",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _People_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.People) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_People_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_People_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "People",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PeopleConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.PeopleConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PeopleConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.PeopleEdge)
|
|
fc.Result = res
|
|
return ec.marshalNPeopleEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeopleEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PeopleConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PeopleConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_PeopleEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_PeopleEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PeopleEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PeopleConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.PeopleConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PeopleConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PeopleConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PeopleConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PeopleEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.PeopleEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PeopleEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PeopleEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PeopleEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PeopleEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.PeopleEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PeopleEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.People)
|
|
fc.Result = res
|
|
return ec.marshalNPeople2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeople(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PeopleEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PeopleEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_People_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_People_fullName(ctx, field)
|
|
case "primaryEmailAddress":
|
|
return ec.fieldContext_People_primaryEmailAddress(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_People_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_People_kind(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_People_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_People_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type People", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Policy_id(ctx context.Context, field graphql.CollectedField, obj *types.Policy) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Policy_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Policy_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Policy",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Policy_name(ctx context.Context, field graphql.CollectedField, obj *types.Policy) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Policy_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Policy_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Policy",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Policy_status(ctx context.Context, field graphql.CollectedField, obj *types.Policy) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Policy_status(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Status, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(coredata.PolicyStatus)
|
|
fc.Result = res
|
|
return ec.marshalNPolicyStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Policy_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Policy",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type PolicyStatus does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Policy_content(ctx context.Context, field graphql.CollectedField, obj *types.Policy) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Policy_content(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Content, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Policy_content(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Policy",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Policy_reviewDate(ctx context.Context, field graphql.CollectedField, obj *types.Policy) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Policy_reviewDate(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ReviewDate, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*time.Time)
|
|
fc.Result = res
|
|
return ec.marshalODatetime2ᚖtimeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Policy_reviewDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Policy",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Policy_owner(ctx context.Context, field graphql.CollectedField, obj *types.Policy) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Policy_owner(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Policy().Owner(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.People)
|
|
fc.Result = res
|
|
return ec.marshalNPeople2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeople(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Policy_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Policy",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_People_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_People_fullName(ctx, field)
|
|
case "primaryEmailAddress":
|
|
return ec.fieldContext_People_primaryEmailAddress(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_People_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_People_kind(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_People_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_People_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type People", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Policy_controls(ctx context.Context, field graphql.CollectedField, obj *types.Policy) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Policy_controls(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Policy().Controls(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ControlOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.ControlConnection)
|
|
fc.Result = res
|
|
return ec.marshalNControlConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Policy_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Policy",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_ControlConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_ControlConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ControlConnection", field.Name)
|
|
},
|
|
}
|
|
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_Policy_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Policy_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Policy) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Policy_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Policy_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Policy",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Policy_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Policy) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Policy_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Policy_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Policy",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PolicyConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.PolicyConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PolicyConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.PolicyEdge)
|
|
fc.Result = res
|
|
return ec.marshalNPolicyEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PolicyConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PolicyConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_PolicyEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_PolicyEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PolicyEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PolicyConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.PolicyConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PolicyConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PolicyConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PolicyConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PolicyEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.PolicyEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PolicyEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PolicyEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PolicyEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PolicyEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.PolicyEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PolicyEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Policy)
|
|
fc.Result = res
|
|
return ec.marshalNPolicy2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicy(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PolicyEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PolicyEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Policy_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Policy_name(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_Policy_status(ctx, field)
|
|
case "content":
|
|
return ec.fieldContext_Policy_content(ctx, field)
|
|
case "reviewDate":
|
|
return ec.fieldContext_Policy_reviewDate(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Policy_owner(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Policy_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Policy_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Policy_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Policy", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Query_node(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Query_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Query().Node(rctx, fc.Args["id"].(gid.GID))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(types.Node)
|
|
fc.Result = res
|
|
return ec.marshalNNode2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNode(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Query_node(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 nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
|
|
},
|
|
}
|
|
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_node_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Query_viewer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Query_viewer(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Query().Viewer(rctx)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Viewer)
|
|
fc.Result = res
|
|
return ec.marshalNViewer2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐViewer(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Query_viewer(_ 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) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Viewer_id(ctx, field)
|
|
case "user":
|
|
return ec.fieldContext_Viewer_user(ctx, field)
|
|
case "organizations":
|
|
return ec.fieldContext_Viewer_organizations(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Viewer", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Query___type(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.introspectType(fc.Args["name"].(string))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*introspection.Type)
|
|
fc.Result = res
|
|
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
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) {
|
|
fc, err := ec.fieldContext_Query___schema(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.introspectSchema()
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*introspection.Schema)
|
|
fc.Result = res
|
|
return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _RemoveUserPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.RemoveUserPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_RemoveUserPayload_success(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Success, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RemoveUserPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RemoveUserPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _RequestEvidencePayload_evidenceEdge(ctx context.Context, field graphql.CollectedField, obj *types.RequestEvidencePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_RequestEvidencePayload_evidenceEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.EvidenceEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.EvidenceEdge)
|
|
fc.Result = res
|
|
return ec.marshalNEvidenceEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RequestEvidencePayload_evidenceEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RequestEvidencePayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_EvidenceEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_EvidenceEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type EvidenceEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_id(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_name(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_description(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_description(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Description, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_category(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_category(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Category, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_treatment(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_treatment(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Treatment, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(coredata.RiskTreatment)
|
|
fc.Result = res
|
|
return ec.marshalNRiskTreatment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_treatment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type RiskTreatment does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_inherentLikelihood(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_inherentLikelihood(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.InherentLikelihood, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_inherentLikelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_inherentImpact(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_inherentImpact(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.InherentImpact, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_inherentImpact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_inherentSeverity(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_inherentSeverity(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.InherentSeverity, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_inherentSeverity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_residualLikelihood(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_residualLikelihood(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ResidualLikelihood, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_residualLikelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_residualImpact(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_residualImpact(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ResidualImpact, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_residualImpact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_residualSeverity(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_residualSeverity(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ResidualSeverity, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_residualSeverity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_note(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_note(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Note, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_note(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_owner(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_owner(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Risk().Owner(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.People)
|
|
fc.Result = res
|
|
return ec.marshalOPeople2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeople(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_People_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_People_fullName(ctx, field)
|
|
case "primaryEmailAddress":
|
|
return ec.fieldContext_People_primaryEmailAddress(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_People_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_People_kind(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_People_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_People_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type People", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_mesures(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_mesures(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Risk().Mesures(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.MesureOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.MesureConnection)
|
|
fc.Result = res
|
|
return ec.marshalNMesureConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_mesures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_MesureConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_MesureConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MesureConnection", field.Name)
|
|
},
|
|
}
|
|
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_Risk_mesures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_policies(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_policies(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Risk().Policies(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.PolicyOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PolicyConnection)
|
|
fc.Result = res
|
|
return ec.marshalNPolicyConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_policies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_PolicyConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_PolicyConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PolicyConnection", field.Name)
|
|
},
|
|
}
|
|
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_Risk_policies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_controls(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_controls(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Risk().Controls(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ControlOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.ControlConnection)
|
|
fc.Result = res
|
|
return ec.marshalNControlConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_ControlConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_ControlConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ControlConnection", field.Name)
|
|
},
|
|
}
|
|
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_Risk_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Risk",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _RiskConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.RiskConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_RiskConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.RiskEdge)
|
|
fc.Result = res
|
|
return ec.marshalNRiskEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RiskConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RiskConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_RiskEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_RiskEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type RiskEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _RiskConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.RiskConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_RiskConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RiskConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RiskConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _RiskEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.RiskEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_RiskEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RiskEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RiskEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _RiskEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.RiskEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_RiskEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Risk)
|
|
fc.Result = res
|
|
return ec.marshalNRisk2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRisk(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RiskEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RiskEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Risk_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Risk_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Risk_description(ctx, field)
|
|
case "category":
|
|
return ec.fieldContext_Risk_category(ctx, field)
|
|
case "treatment":
|
|
return ec.fieldContext_Risk_treatment(ctx, field)
|
|
case "inherentLikelihood":
|
|
return ec.fieldContext_Risk_inherentLikelihood(ctx, field)
|
|
case "inherentImpact":
|
|
return ec.fieldContext_Risk_inherentImpact(ctx, field)
|
|
case "inherentSeverity":
|
|
return ec.fieldContext_Risk_inherentSeverity(ctx, field)
|
|
case "residualLikelihood":
|
|
return ec.fieldContext_Risk_residualLikelihood(ctx, field)
|
|
case "residualImpact":
|
|
return ec.fieldContext_Risk_residualImpact(ctx, field)
|
|
case "residualSeverity":
|
|
return ec.fieldContext_Risk_residualSeverity(ctx, field)
|
|
case "note":
|
|
return ec.fieldContext_Risk_note(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Risk_owner(ctx, field)
|
|
case "mesures":
|
|
return ec.fieldContext_Risk_mesures(ctx, field)
|
|
case "policies":
|
|
return ec.fieldContext_Risk_policies(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Risk_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Risk_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Risk_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Session_id(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Session_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Session_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Session",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Session_expiresAt(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Session_expiresAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ExpiresAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Session_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Session",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Task_id(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Task_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Task_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Task",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Task_name(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Task_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Task_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Task",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Task_description(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Task_description(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Description, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Task_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Task",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Task_state(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Task_state(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.State, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(coredata.TaskState)
|
|
fc.Result = res
|
|
return ec.marshalNTaskState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Task_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Task",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type TaskState does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Task_timeEstimate(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Task_timeEstimate(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.TimeEstimate, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*time.Duration)
|
|
fc.Result = res
|
|
return ec.marshalODuration2ᚖtimeᚐDuration(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Task_timeEstimate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Task",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Duration does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Task_assignedTo(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Task_assignedTo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Task().AssignedTo(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.People)
|
|
fc.Result = res
|
|
return ec.marshalOPeople2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeople(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Task_assignedTo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Task",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_People_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_People_fullName(ctx, field)
|
|
case "primaryEmailAddress":
|
|
return ec.fieldContext_People_primaryEmailAddress(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_People_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_People_kind(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_People_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_People_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type People", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Task_evidences(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Task_evidences(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Task().Evidences(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.EvidenceOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.EvidenceConnection)
|
|
fc.Result = res
|
|
return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Task_evidences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Task",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_EvidenceConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_EvidenceConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type EvidenceConnection", field.Name)
|
|
},
|
|
}
|
|
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_Task_evidences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Task_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Task_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Task_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Task",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Task_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Task_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Task_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Task",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _TaskConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.TaskConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TaskConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.TaskEdge)
|
|
fc.Result = res
|
|
return ec.marshalNTaskEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_TaskConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TaskConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_TaskEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_TaskEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type TaskEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _TaskConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.TaskConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TaskConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_TaskConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TaskConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _TaskEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.TaskEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TaskEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_TaskEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TaskEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _TaskEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.TaskEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TaskEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Task)
|
|
fc.Result = res
|
|
return ec.marshalNTask2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTask(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_TaskEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TaskEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Task_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Task_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Task_description(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Task_state(ctx, field)
|
|
case "timeEstimate":
|
|
return ec.fieldContext_Task_timeEstimate(ctx, field)
|
|
case "assignedTo":
|
|
return ec.fieldContext_Task_assignedTo(ctx, field)
|
|
case "evidences":
|
|
return ec.fieldContext_Task_evidences(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Task_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Task_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Task", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UnassignTaskPayload_task(ctx context.Context, field graphql.CollectedField, obj *types.UnassignTaskPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UnassignTaskPayload_task(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Task, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Task)
|
|
fc.Result = res
|
|
return ec.marshalNTask2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTask(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UnassignTaskPayload_task(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UnassignTaskPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Task_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Task_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Task_description(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Task_state(ctx, field)
|
|
case "timeEstimate":
|
|
return ec.fieldContext_Task_timeEstimate(ctx, field)
|
|
case "assignedTo":
|
|
return ec.fieldContext_Task_assignedTo(ctx, field)
|
|
case "evidences":
|
|
return ec.fieldContext_Task_evidences(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Task_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Task_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Task", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateFrameworkPayload_framework(ctx context.Context, field graphql.CollectedField, obj *types.UpdateFrameworkPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateFrameworkPayload_framework(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Framework, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Framework)
|
|
fc.Result = res
|
|
return ec.marshalNFramework2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFramework(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateFrameworkPayload_framework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateFrameworkPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Framework_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Framework_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Framework_description(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Framework_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Framework_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Framework_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Framework", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateMesurePayload_mesure(ctx context.Context, field graphql.CollectedField, obj *types.UpdateMesurePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateMesurePayload_mesure(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Mesure, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Mesure)
|
|
fc.Result = res
|
|
return ec.marshalNMesure2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesure(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateMesurePayload_mesure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateMesurePayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Mesure_id(ctx, field)
|
|
case "category":
|
|
return ec.fieldContext_Mesure_category(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Mesure_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Mesure_description(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Mesure_state(ctx, field)
|
|
case "importance":
|
|
return ec.fieldContext_Mesure_importance(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Mesure_tasks(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Mesure_risks(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Mesure_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Mesure_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Mesure_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Mesure", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateOrganizationPayload_organization(ctx context.Context, field graphql.CollectedField, obj *types.UpdateOrganizationPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateOrganizationPayload_organization(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Organization, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Organization)
|
|
fc.Result = res
|
|
return ec.marshalNOrganization2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateOrganizationPayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateOrganizationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Organization_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Organization_name(ctx, field)
|
|
case "logoUrl":
|
|
return ec.fieldContext_Organization_logoUrl(ctx, field)
|
|
case "users":
|
|
return ec.fieldContext_Organization_users(ctx, field)
|
|
case "connectors":
|
|
return ec.fieldContext_Organization_connectors(ctx, field)
|
|
case "frameworks":
|
|
return ec.fieldContext_Organization_frameworks(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "policies":
|
|
return ec.fieldContext_Organization_policies(ctx, field)
|
|
case "mesures":
|
|
return ec.fieldContext_Organization_mesures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Organization_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Organization_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdatePeoplePayload_people(ctx context.Context, field graphql.CollectedField, obj *types.UpdatePeoplePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdatePeoplePayload_people(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.People, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.People)
|
|
fc.Result = res
|
|
return ec.marshalNPeople2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeople(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdatePeoplePayload_people(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdatePeoplePayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_People_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_People_fullName(ctx, field)
|
|
case "primaryEmailAddress":
|
|
return ec.fieldContext_People_primaryEmailAddress(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_People_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_People_kind(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_People_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_People_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type People", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdatePolicyPayload_policy(ctx context.Context, field graphql.CollectedField, obj *types.UpdatePolicyPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdatePolicyPayload_policy(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Policy, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Policy)
|
|
fc.Result = res
|
|
return ec.marshalNPolicy2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicy(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdatePolicyPayload_policy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdatePolicyPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Policy_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Policy_name(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_Policy_status(ctx, field)
|
|
case "content":
|
|
return ec.fieldContext_Policy_content(ctx, field)
|
|
case "reviewDate":
|
|
return ec.fieldContext_Policy_reviewDate(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Policy_owner(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Policy_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Policy_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Policy_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Policy", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateRiskPayload_risk(ctx context.Context, field graphql.CollectedField, obj *types.UpdateRiskPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateRiskPayload_risk(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Risk, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Risk)
|
|
fc.Result = res
|
|
return ec.marshalNRisk2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRisk(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateRiskPayload_risk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateRiskPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Risk_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Risk_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Risk_description(ctx, field)
|
|
case "category":
|
|
return ec.fieldContext_Risk_category(ctx, field)
|
|
case "treatment":
|
|
return ec.fieldContext_Risk_treatment(ctx, field)
|
|
case "inherentLikelihood":
|
|
return ec.fieldContext_Risk_inherentLikelihood(ctx, field)
|
|
case "inherentImpact":
|
|
return ec.fieldContext_Risk_inherentImpact(ctx, field)
|
|
case "inherentSeverity":
|
|
return ec.fieldContext_Risk_inherentSeverity(ctx, field)
|
|
case "residualLikelihood":
|
|
return ec.fieldContext_Risk_residualLikelihood(ctx, field)
|
|
case "residualImpact":
|
|
return ec.fieldContext_Risk_residualImpact(ctx, field)
|
|
case "residualSeverity":
|
|
return ec.fieldContext_Risk_residualSeverity(ctx, field)
|
|
case "note":
|
|
return ec.fieldContext_Risk_note(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Risk_owner(ctx, field)
|
|
case "mesures":
|
|
return ec.fieldContext_Risk_mesures(ctx, field)
|
|
case "policies":
|
|
return ec.fieldContext_Risk_policies(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Risk_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Risk_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Risk_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateTaskPayload_task(ctx context.Context, field graphql.CollectedField, obj *types.UpdateTaskPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateTaskPayload_task(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Task, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Task)
|
|
fc.Result = res
|
|
return ec.marshalNTask2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTask(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateTaskPayload_task(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateTaskPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Task_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Task_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Task_description(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Task_state(ctx, field)
|
|
case "timeEstimate":
|
|
return ec.fieldContext_Task_timeEstimate(ctx, field)
|
|
case "assignedTo":
|
|
return ec.fieldContext_Task_assignedTo(ctx, field)
|
|
case "evidences":
|
|
return ec.fieldContext_Task_evidences(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Task_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Task_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Task", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateVendorPayload_vendor(ctx context.Context, field graphql.CollectedField, obj *types.UpdateVendorPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateVendorPayload_vendor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Vendor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Vendor)
|
|
fc.Result = res
|
|
return ec.marshalNVendor2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateVendorPayload_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateVendorPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Vendor_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Vendor_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Vendor_description(ctx, field)
|
|
case "complianceReports":
|
|
return ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
case "riskAssessments":
|
|
return ec.fieldContext_Vendor_riskAssessments(ctx, field)
|
|
case "businessOwner":
|
|
return ec.fieldContext_Vendor_businessOwner(ctx, field)
|
|
case "securityOwner":
|
|
return ec.fieldContext_Vendor_securityOwner(ctx, field)
|
|
case "serviceStartAt":
|
|
return ec.fieldContext_Vendor_serviceStartAt(ctx, field)
|
|
case "serviceTerminationAt":
|
|
return ec.fieldContext_Vendor_serviceTerminationAt(ctx, field)
|
|
case "statusPageUrl":
|
|
return ec.fieldContext_Vendor_statusPageUrl(ctx, field)
|
|
case "termsOfServiceUrl":
|
|
return ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field)
|
|
case "privacyPolicyUrl":
|
|
return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field)
|
|
case "serviceLevelAgreementUrl":
|
|
return ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field)
|
|
case "dataProcessingAgreementUrl":
|
|
return ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field)
|
|
case "certifications":
|
|
return ec.fieldContext_Vendor_certifications(ctx, field)
|
|
case "securityPageUrl":
|
|
return ec.fieldContext_Vendor_securityPageUrl(ctx, field)
|
|
case "trustPageUrl":
|
|
return ec.fieldContext_Vendor_trustPageUrl(ctx, field)
|
|
case "headquarterAddress":
|
|
return ec.fieldContext_Vendor_headquarterAddress(ctx, field)
|
|
case "legalName":
|
|
return ec.fieldContext_Vendor_legalName(ctx, field)
|
|
case "websiteUrl":
|
|
return ec.fieldContext_Vendor_websiteUrl(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Vendor_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Vendor_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UploadVendorComplianceReportPayload_vendorComplianceReportEdge(ctx context.Context, field graphql.CollectedField, obj *types.UploadVendorComplianceReportPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UploadVendorComplianceReportPayload_vendorComplianceReportEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.VendorComplianceReportEdge, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.VendorComplianceReportEdge)
|
|
fc.Result = res
|
|
return ec.marshalNVendorComplianceReportEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UploadVendorComplianceReportPayload_vendorComplianceReportEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UploadVendorComplianceReportPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_VendorComplianceReportEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_VendorComplianceReportEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorComplianceReportEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *types.User) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_User_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_User_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "User",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _User_fullName(ctx context.Context, field graphql.CollectedField, obj *types.User) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_User_fullName(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.FullName, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_User_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "User",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _User_email(ctx context.Context, field graphql.CollectedField, obj *types.User) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_User_email(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Email, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_User_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "User",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _User_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.User) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_User_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_User_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "User",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _User_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.User) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_User_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_User_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "User",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _User_people(ctx context.Context, field graphql.CollectedField, obj *types.User) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_User_people(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.User().People(rctx, obj, fc.Args["organizationId"].(gid.GID))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.People)
|
|
fc.Result = res
|
|
return ec.marshalOPeople2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeople(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_User_people(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "User",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_People_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_People_fullName(ctx, field)
|
|
case "primaryEmailAddress":
|
|
return ec.fieldContext_People_primaryEmailAddress(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_People_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_People_kind(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_People_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_People_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type People", field.Name)
|
|
},
|
|
}
|
|
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_User_people_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UserConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.UserConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UserConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.UserEdge)
|
|
fc.Result = res
|
|
return ec.marshalNUserEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUserEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UserConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UserConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_UserEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_UserEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UserEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UserConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.UserConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UserConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UserConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UserConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UserEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.UserEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UserEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UserEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UserEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UserEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.UserEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UserEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.User)
|
|
fc.Result = res
|
|
return ec.marshalNUser2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUser(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UserEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UserEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_User_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_User_fullName(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_User_email(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_User_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_User_updatedAt(ctx, field)
|
|
case "people":
|
|
return ec.fieldContext_User_people(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_id(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_name(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_description(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_description(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Description, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_complianceReports(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Vendor().ComplianceReports(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.VendorComplianceReportOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.VendorComplianceReportConnection)
|
|
fc.Result = res
|
|
return ec.marshalNVendorComplianceReportConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_complianceReports(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_VendorComplianceReportConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_VendorComplianceReportConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorComplianceReportConnection", field.Name)
|
|
},
|
|
}
|
|
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_Vendor_complianceReports_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_riskAssessments(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_riskAssessments(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Vendor().RiskAssessments(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.VendorRiskAssessmentOrder))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.VendorRiskAssessmentConnection)
|
|
fc.Result = res
|
|
return ec.marshalNVendorRiskAssessmentConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_riskAssessments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_VendorRiskAssessmentConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_VendorRiskAssessmentConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorRiskAssessmentConnection", field.Name)
|
|
},
|
|
}
|
|
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_Vendor_riskAssessments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_businessOwner(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_businessOwner(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Vendor().BusinessOwner(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.People)
|
|
fc.Result = res
|
|
return ec.marshalOPeople2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeople(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_businessOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_People_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_People_fullName(ctx, field)
|
|
case "primaryEmailAddress":
|
|
return ec.fieldContext_People_primaryEmailAddress(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_People_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_People_kind(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_People_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_People_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type People", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_securityOwner(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_securityOwner(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Vendor().SecurityOwner(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.People)
|
|
fc.Result = res
|
|
return ec.marshalOPeople2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeople(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_securityOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_People_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_People_fullName(ctx, field)
|
|
case "primaryEmailAddress":
|
|
return ec.fieldContext_People_primaryEmailAddress(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_People_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_People_kind(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_People_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_People_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type People", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_serviceStartAt(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_serviceStartAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ServiceStartAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_serviceStartAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_serviceTerminationAt(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_serviceTerminationAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ServiceTerminationAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*time.Time)
|
|
fc.Result = res
|
|
return ec.marshalODatetime2ᚖtimeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_serviceTerminationAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_statusPageUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_statusPageUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.StatusPageURL, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_statusPageUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_termsOfServiceUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.TermsOfServiceURL, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_termsOfServiceUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_privacyPolicyUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PrivacyPolicyURL, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_privacyPolicyUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_serviceLevelAgreementUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ServiceLevelAgreementURL, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_serviceLevelAgreementUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_dataProcessingAgreementUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DataProcessingAgreementURL, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_dataProcessingAgreementUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_certifications(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_certifications(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Certifications, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]string)
|
|
fc.Result = res
|
|
return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_certifications(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_securityPageUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_securityPageUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SecurityPageURL, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_securityPageUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_trustPageUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_trustPageUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.TrustPageURL, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_trustPageUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_headquarterAddress(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_headquarterAddress(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.HeadquarterAddress, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_headquarterAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_legalName(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_legalName(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.LegalName, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_legalName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_websiteUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_websiteUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.WebsiteURL, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_websiteUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Vendor",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorComplianceReport_id(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorComplianceReport_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorComplianceReport_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorComplianceReport",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorComplianceReport_vendor(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorComplianceReport_vendor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.VendorComplianceReport().Vendor(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Vendor)
|
|
fc.Result = res
|
|
return ec.marshalNVendor2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorComplianceReport_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorComplianceReport",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Vendor_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Vendor_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Vendor_description(ctx, field)
|
|
case "complianceReports":
|
|
return ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
case "riskAssessments":
|
|
return ec.fieldContext_Vendor_riskAssessments(ctx, field)
|
|
case "businessOwner":
|
|
return ec.fieldContext_Vendor_businessOwner(ctx, field)
|
|
case "securityOwner":
|
|
return ec.fieldContext_Vendor_securityOwner(ctx, field)
|
|
case "serviceStartAt":
|
|
return ec.fieldContext_Vendor_serviceStartAt(ctx, field)
|
|
case "serviceTerminationAt":
|
|
return ec.fieldContext_Vendor_serviceTerminationAt(ctx, field)
|
|
case "statusPageUrl":
|
|
return ec.fieldContext_Vendor_statusPageUrl(ctx, field)
|
|
case "termsOfServiceUrl":
|
|
return ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field)
|
|
case "privacyPolicyUrl":
|
|
return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field)
|
|
case "serviceLevelAgreementUrl":
|
|
return ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field)
|
|
case "dataProcessingAgreementUrl":
|
|
return ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field)
|
|
case "certifications":
|
|
return ec.fieldContext_Vendor_certifications(ctx, field)
|
|
case "securityPageUrl":
|
|
return ec.fieldContext_Vendor_securityPageUrl(ctx, field)
|
|
case "trustPageUrl":
|
|
return ec.fieldContext_Vendor_trustPageUrl(ctx, field)
|
|
case "headquarterAddress":
|
|
return ec.fieldContext_Vendor_headquarterAddress(ctx, field)
|
|
case "legalName":
|
|
return ec.fieldContext_Vendor_legalName(ctx, field)
|
|
case "websiteUrl":
|
|
return ec.fieldContext_Vendor_websiteUrl(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Vendor_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Vendor_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorComplianceReport_reportDate(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorComplianceReport_reportDate(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ReportDate, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorComplianceReport_reportDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorComplianceReport",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorComplianceReport_validUntil(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorComplianceReport_validUntil(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ValidUntil, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*time.Time)
|
|
fc.Result = res
|
|
return ec.marshalODatetime2ᚖtimeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorComplianceReport_validUntil(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorComplianceReport",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorComplianceReport_reportName(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorComplianceReport_reportName(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ReportName, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorComplianceReport_reportName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorComplianceReport",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorComplianceReport_fileUrl(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorComplianceReport_fileUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.VendorComplianceReport().FileURL(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorComplianceReport_fileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorComplianceReport",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorComplianceReport_fileSize(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorComplianceReport_fileSize(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.FileSize, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorComplianceReport_fileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorComplianceReport",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorComplianceReport_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorComplianceReport_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorComplianceReport_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorComplianceReport",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorComplianceReport_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorComplianceReport_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorComplianceReport_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorComplianceReport",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorComplianceReportConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReportConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorComplianceReportConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.VendorComplianceReportEdge)
|
|
fc.Result = res
|
|
return ec.marshalNVendorComplianceReportEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorComplianceReportConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorComplianceReportConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_VendorComplianceReportEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_VendorComplianceReportEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorComplianceReportEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorComplianceReportConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReportConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorComplianceReportConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorComplianceReportConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorComplianceReportConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorComplianceReportEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReportEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorComplianceReportEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorComplianceReportEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorComplianceReportEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorComplianceReportEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReportEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorComplianceReportEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.VendorComplianceReport)
|
|
fc.Result = res
|
|
return ec.marshalNVendorComplianceReport2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReport(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorComplianceReportEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorComplianceReportEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_VendorComplianceReport_id(ctx, field)
|
|
case "vendor":
|
|
return ec.fieldContext_VendorComplianceReport_vendor(ctx, field)
|
|
case "reportDate":
|
|
return ec.fieldContext_VendorComplianceReport_reportDate(ctx, field)
|
|
case "validUntil":
|
|
return ec.fieldContext_VendorComplianceReport_validUntil(ctx, field)
|
|
case "reportName":
|
|
return ec.fieldContext_VendorComplianceReport_reportName(ctx, field)
|
|
case "fileUrl":
|
|
return ec.fieldContext_VendorComplianceReport_fileUrl(ctx, field)
|
|
case "fileSize":
|
|
return ec.fieldContext_VendorComplianceReport_fileSize(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_VendorComplianceReport_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_VendorComplianceReport_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorComplianceReport", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.VendorConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.VendorEdge)
|
|
fc.Result = res
|
|
return ec.marshalNVendorEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_VendorEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_VendorEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.VendorConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.VendorEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.VendorEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Vendor)
|
|
fc.Result = res
|
|
return ec.marshalNVendor2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Vendor_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Vendor_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Vendor_description(ctx, field)
|
|
case "complianceReports":
|
|
return ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
case "riskAssessments":
|
|
return ec.fieldContext_Vendor_riskAssessments(ctx, field)
|
|
case "businessOwner":
|
|
return ec.fieldContext_Vendor_businessOwner(ctx, field)
|
|
case "securityOwner":
|
|
return ec.fieldContext_Vendor_securityOwner(ctx, field)
|
|
case "serviceStartAt":
|
|
return ec.fieldContext_Vendor_serviceStartAt(ctx, field)
|
|
case "serviceTerminationAt":
|
|
return ec.fieldContext_Vendor_serviceTerminationAt(ctx, field)
|
|
case "statusPageUrl":
|
|
return ec.fieldContext_Vendor_statusPageUrl(ctx, field)
|
|
case "termsOfServiceUrl":
|
|
return ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field)
|
|
case "privacyPolicyUrl":
|
|
return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field)
|
|
case "serviceLevelAgreementUrl":
|
|
return ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field)
|
|
case "dataProcessingAgreementUrl":
|
|
return ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field)
|
|
case "certifications":
|
|
return ec.fieldContext_Vendor_certifications(ctx, field)
|
|
case "securityPageUrl":
|
|
return ec.fieldContext_Vendor_securityPageUrl(ctx, field)
|
|
case "trustPageUrl":
|
|
return ec.fieldContext_Vendor_trustPageUrl(ctx, field)
|
|
case "headquarterAddress":
|
|
return ec.fieldContext_Vendor_headquarterAddress(ctx, field)
|
|
case "legalName":
|
|
return ec.fieldContext_Vendor_legalName(ctx, field)
|
|
case "websiteUrl":
|
|
return ec.fieldContext_Vendor_websiteUrl(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Vendor_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Vendor_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessment_id(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessment_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessment",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessment_vendor(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessment_vendor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.VendorRiskAssessment().Vendor(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Vendor)
|
|
fc.Result = res
|
|
return ec.marshalNVendor2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessment_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessment",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Vendor_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Vendor_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Vendor_description(ctx, field)
|
|
case "complianceReports":
|
|
return ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
case "riskAssessments":
|
|
return ec.fieldContext_Vendor_riskAssessments(ctx, field)
|
|
case "businessOwner":
|
|
return ec.fieldContext_Vendor_businessOwner(ctx, field)
|
|
case "securityOwner":
|
|
return ec.fieldContext_Vendor_securityOwner(ctx, field)
|
|
case "serviceStartAt":
|
|
return ec.fieldContext_Vendor_serviceStartAt(ctx, field)
|
|
case "serviceTerminationAt":
|
|
return ec.fieldContext_Vendor_serviceTerminationAt(ctx, field)
|
|
case "statusPageUrl":
|
|
return ec.fieldContext_Vendor_statusPageUrl(ctx, field)
|
|
case "termsOfServiceUrl":
|
|
return ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field)
|
|
case "privacyPolicyUrl":
|
|
return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field)
|
|
case "serviceLevelAgreementUrl":
|
|
return ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field)
|
|
case "dataProcessingAgreementUrl":
|
|
return ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field)
|
|
case "certifications":
|
|
return ec.fieldContext_Vendor_certifications(ctx, field)
|
|
case "securityPageUrl":
|
|
return ec.fieldContext_Vendor_securityPageUrl(ctx, field)
|
|
case "trustPageUrl":
|
|
return ec.fieldContext_Vendor_trustPageUrl(ctx, field)
|
|
case "headquarterAddress":
|
|
return ec.fieldContext_Vendor_headquarterAddress(ctx, field)
|
|
case "legalName":
|
|
return ec.fieldContext_Vendor_legalName(ctx, field)
|
|
case "websiteUrl":
|
|
return ec.fieldContext_Vendor_websiteUrl(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Vendor_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Vendor_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessment_assessedAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessment_assessedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.AssessedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessment_assessedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessment",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessment_assessedBy(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessment_assessedBy(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.VendorRiskAssessment().AssessedBy(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.People)
|
|
fc.Result = res
|
|
return ec.marshalNPeople2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeople(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessment_assessedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessment",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_People_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_People_fullName(ctx, field)
|
|
case "primaryEmailAddress":
|
|
return ec.fieldContext_People_primaryEmailAddress(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_People_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_People_kind(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_People_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_People_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type People", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessment_expiresAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessment_expiresAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ExpiresAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessment_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessment",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessment_dataSensitivity(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessment_dataSensitivity(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DataSensitivity, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(coredata.DataSensitivity)
|
|
fc.Result = res
|
|
return ec.marshalNDataSensitivity2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataSensitivity(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessment_dataSensitivity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessment",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type DataSensitivity does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessment_businessImpact(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessment_businessImpact(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.BusinessImpact, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(coredata.BusinessImpact)
|
|
fc.Result = res
|
|
return ec.marshalNBusinessImpact2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐBusinessImpact(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessment_businessImpact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessment",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type BusinessImpact does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessment_notes(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessment_notes(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Notes, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessment_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessment",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessment_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessment_createdAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CreatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessment_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessment",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessment_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessment_updatedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.UpdatedAt, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(time.Time)
|
|
fc.Result = res
|
|
return ec.marshalNDatetime2timeᚐTime(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessment_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessment",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessmentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessmentConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessmentConnection_edges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Edges, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]*types.VendorRiskAssessmentEdge)
|
|
fc.Result = res
|
|
return ec.marshalNVendorRiskAssessmentEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessmentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessmentConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_VendorRiskAssessmentEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_VendorRiskAssessmentEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorRiskAssessmentEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessmentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessmentConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessmentConnection_pageInfo(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PageInfo, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.PageInfo)
|
|
fc.Result = res
|
|
return ec.marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessmentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessmentConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessmentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessmentEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessmentEdge_cursor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Cursor, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(page.CursorKey)
|
|
fc.Result = res
|
|
return ec.marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessmentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessmentEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessmentEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessmentEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorRiskAssessmentEdge_node(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Node, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.VendorRiskAssessment)
|
|
fc.Result = res
|
|
return ec.marshalNVendorRiskAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessment(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorRiskAssessmentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorRiskAssessmentEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_VendorRiskAssessment_id(ctx, field)
|
|
case "vendor":
|
|
return ec.fieldContext_VendorRiskAssessment_vendor(ctx, field)
|
|
case "assessedAt":
|
|
return ec.fieldContext_VendorRiskAssessment_assessedAt(ctx, field)
|
|
case "assessedBy":
|
|
return ec.fieldContext_VendorRiskAssessment_assessedBy(ctx, field)
|
|
case "expiresAt":
|
|
return ec.fieldContext_VendorRiskAssessment_expiresAt(ctx, field)
|
|
case "dataSensitivity":
|
|
return ec.fieldContext_VendorRiskAssessment_dataSensitivity(ctx, field)
|
|
case "businessImpact":
|
|
return ec.fieldContext_VendorRiskAssessment_businessImpact(ctx, field)
|
|
case "notes":
|
|
return ec.fieldContext_VendorRiskAssessment_notes(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_VendorRiskAssessment_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_VendorRiskAssessment_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorRiskAssessment", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Viewer_id(ctx context.Context, field graphql.CollectedField, obj *types.Viewer) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Viewer_id(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Viewer_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Viewer",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Viewer_user(ctx context.Context, field graphql.CollectedField, obj *types.Viewer) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Viewer_user(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.User, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.User)
|
|
fc.Result = res
|
|
return ec.marshalNUser2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUser(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Viewer_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Viewer",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_User_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_User_fullName(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_User_email(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_User_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_User_updatedAt(ctx, field)
|
|
case "people":
|
|
return ec.fieldContext_User_people(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type User", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Viewer_organizations(ctx context.Context, field graphql.CollectedField, obj *types.Viewer) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Viewer_organizations(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return ec.resolvers.Viewer().Organizations(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.OrganizationOrder))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.OrganizationConnection)
|
|
fc.Result = res
|
|
return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Viewer_organizations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Viewer",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_OrganizationConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_OrganizationConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type OrganizationConnection", field.Name)
|
|
},
|
|
}
|
|
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_Viewer_organizations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Directive_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Directive_name(_ 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 nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Directive_description(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Description(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Directive",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.IsRepeatable, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Directive_isRepeatable(_ 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 nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Directive_locations(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Locations, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]string)
|
|
fc.Result = res
|
|
return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Directive_locations(_ 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 nil, errors.New("field of type __DirectiveLocation does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Directive_args(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Args, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]introspection.InputValue)
|
|
fc.Result = res
|
|
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
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) {
|
|
fc, err := ec.fieldContext___EnumValue_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__EnumValue",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___EnumValue_description(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Description(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__EnumValue",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.IsDeprecated(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__EnumValue",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeprecationReason(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__EnumValue",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Field_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Field_name(_ 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 nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Field_description(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Description(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Field",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Field_args(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Args, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]introspection.InputValue)
|
|
fc.Result = res
|
|
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
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) {
|
|
fc, err := ec.fieldContext___Field_type(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Type, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*introspection.Type)
|
|
fc.Result = res
|
|
return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Field_isDeprecated(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.IsDeprecated(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Field",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Field_deprecationReason(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeprecationReason(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Field",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___InputValue_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalNString2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___InputValue_name(_ 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 nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___InputValue_description(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Description(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__InputValue",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___InputValue_type(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Type, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*introspection.Type)
|
|
fc.Result = res
|
|
return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DefaultValue, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___InputValue_defaultValue(_ 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 nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___InputValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.IsDeprecated(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___InputValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__InputValue",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeprecationReason(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___InputValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__InputValue",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Schema_description(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Description(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Schema_description(_ 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 nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Schema_types(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Types(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]introspection.Type)
|
|
fc.Result = res
|
|
return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Schema_queryType(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.QueryType(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*introspection.Type)
|
|
fc.Result = res
|
|
return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Schema_mutationType(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.MutationType(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*introspection.Type)
|
|
fc.Result = res
|
|
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SubscriptionType(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*introspection.Type)
|
|
fc.Result = res
|
|
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Schema_directives(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Directives(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]introspection.Directive)
|
|
fc.Result = res
|
|
return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Type_kind(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Kind(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
if !graphql.HasFieldError(ctx, fc) {
|
|
ec.Errorf(ctx, "must not be null")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(string)
|
|
fc.Result = res
|
|
return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_kind(_ 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 nil, errors.New("field of type __TypeKind does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Type_name(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Name(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_name(_ 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 nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Type_description(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Description(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_description(_ 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 nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SpecifiedByURL(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_specifiedByURL(_ 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 nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Type_fields(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]introspection.Field)
|
|
fc.Result = res
|
|
return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
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) {
|
|
fc, err := ec.fieldContext___Type_interfaces(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Interfaces(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]introspection.Type)
|
|
fc.Result = res
|
|
return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PossibleTypes(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]introspection.Type)
|
|
fc.Result = res
|
|
return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Type_enumValues(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]introspection.EnumValue)
|
|
fc.Result = res
|
|
return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
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) {
|
|
fc, err := ec.fieldContext___Type_inputFields(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.InputFields(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.([]introspection.InputValue)
|
|
fc.Result = res
|
|
return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Type_ofType(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.OfType(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*introspection.Type)
|
|
fc.Result = res
|
|
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
|
|
}
|
|
|
|
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) {
|
|
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)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext___Type_isOneOf(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.IsOneOf(), nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(bool)
|
|
fc.Result = res
|
|
return ec.marshalOBoolean2bool(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_isOneOf(_ 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 nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
// endregion **************************** field.gotpl *****************************
|
|
|
|
// region **************************** input.gotpl *****************************
|
|
|
|
func (ec *executionContext) unmarshalInputAssignTaskInput(ctx context.Context, obj any) (types.AssignTaskInput, error) {
|
|
var it types.AssignTaskInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"taskId", "assignedToId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "taskId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taskId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TaskID = data
|
|
case "assignedToId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assignedToId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AssignedToID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputConfirmEmailInput(ctx context.Context, obj any) (types.ConfirmEmailInput, error) {
|
|
var it types.ConfirmEmailInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"token"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "token":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Token = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputConnectorOrder(ctx context.Context, obj any) (types.ConnectorOrder, error) {
|
|
var it types.ConnectorOrder
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"field", "direction"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNConnectorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐConnectorOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputControlOrder(ctx context.Context, obj any) (types.ControlOrderBy, error) {
|
|
var it types.ControlOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNControlOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateControlMesureMappingInput(ctx context.Context, obj any) (types.CreateControlMesureMappingInput, error) {
|
|
var it types.CreateControlMesureMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"controlId", "mesureId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "controlId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ControlID = data
|
|
case "mesureId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mesureId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.MesureID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateControlPolicyMappingInput(ctx context.Context, obj any) (types.CreateControlPolicyMappingInput, error) {
|
|
var it types.CreateControlPolicyMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"controlId", "policyId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "controlId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ControlID = data
|
|
case "policyId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.PolicyID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateEvidenceInput(ctx context.Context, obj any) (types.CreateEvidenceInput, error) {
|
|
var it types.CreateEvidenceInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"taskId", "name", "type", "url", "file", "description"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "taskId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taskId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TaskID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "type":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
|
|
data, err := ec.unmarshalNEvidenceType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceType(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Type = 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 "file":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file"))
|
|
data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.File = data
|
|
case "description":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Description = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateFrameworkInput(ctx context.Context, obj any) (types.CreateFrameworkInput, error) {
|
|
var it types.CreateFrameworkInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "name", "description"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "description":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Description = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateMesureInput(ctx context.Context, obj any) (types.CreateMesureInput, error) {
|
|
var it types.CreateMesureInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "name", "description", "category", "importance"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "description":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Description = data
|
|
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 "importance":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("importance"))
|
|
data, err := ec.unmarshalNMesureImportance2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Importance = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Context, obj any) (types.CreateOrganizationInput, error) {
|
|
var it types.CreateOrganizationInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"name"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreatePeopleInput(ctx context.Context, obj any) (types.CreatePeopleInput, error) {
|
|
var it types.CreatePeopleInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "fullName", "primaryEmailAddress", "additionalEmailAddresses", "kind"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "fullName":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.FullName = data
|
|
case "primaryEmailAddress":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("primaryEmailAddress"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.PrimaryEmailAddress = data
|
|
case "additionalEmailAddresses":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("additionalEmailAddresses"))
|
|
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AdditionalEmailAddresses = data
|
|
case "kind":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind"))
|
|
data, err := ec.unmarshalNPeopleKind2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Kind = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreatePolicyInput(ctx context.Context, obj any) (types.CreatePolicyInput, error) {
|
|
var it types.CreatePolicyInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "name", "content", "status", "reviewDate", "ownerId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "content":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Content = data
|
|
case "status":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
|
|
data, err := ec.unmarshalNPolicyStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Status = data
|
|
case "reviewDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reviewDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ReviewDate = data
|
|
case "ownerId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OwnerID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateRiskInput(ctx context.Context, obj any) (types.CreateRiskInput, error) {
|
|
var it types.CreateRiskInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "name", "description", "category", "ownerId", "treatment", "inherentLikelihood", "inherentImpact", "residualLikelihood", "residualImpact", "note"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "description":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Description = data
|
|
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 "ownerId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OwnerID = data
|
|
case "treatment":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("treatment"))
|
|
data, err := ec.unmarshalNRiskTreatment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Treatment = data
|
|
case "inherentLikelihood":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inherentLikelihood"))
|
|
data, err := ec.unmarshalNInt2int(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.InherentLikelihood = data
|
|
case "inherentImpact":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inherentImpact"))
|
|
data, err := ec.unmarshalNInt2int(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.InherentImpact = data
|
|
case "residualLikelihood":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("residualLikelihood"))
|
|
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ResidualLikelihood = data
|
|
case "residualImpact":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("residualImpact"))
|
|
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ResidualImpact = 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
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateRiskMesureMappingInput(ctx context.Context, obj any) (types.CreateRiskMesureMappingInput, error) {
|
|
var it types.CreateRiskMesureMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"riskId", "mesureId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "riskId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.RiskID = data
|
|
case "mesureId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mesureId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.MesureID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateRiskPolicyMappingInput(ctx context.Context, obj any) (types.CreateRiskPolicyMappingInput, error) {
|
|
var it types.CreateRiskPolicyMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"riskId", "policyId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "riskId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.RiskID = data
|
|
case "policyId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.PolicyID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateTaskInput(ctx context.Context, obj any) (types.CreateTaskInput, error) {
|
|
var it types.CreateTaskInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"mesureId", "name", "description", "timeEstimate", "assignedToId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "mesureId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mesureId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.MesureID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "description":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Description = data
|
|
case "timeEstimate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timeEstimate"))
|
|
data, err := ec.unmarshalODuration2ᚖtimeᚐDuration(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TimeEstimate = data
|
|
case "assignedToId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assignedToId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AssignedToID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateVendorInput(ctx context.Context, obj any) (types.CreateVendorInput, error) {
|
|
var it types.CreateVendorInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "name", "description", "headquarterAddress", "legalName", "websiteUrl", "privacyPolicyUrl", "category", "serviceLevelAgreementUrl", "dataProcessingAgreementUrl", "certifications", "securityPageUrl", "trustPageUrl", "statusPageUrl", "termsOfServiceUrl", "serviceStartAt", "serviceTerminationAt", "businessOwnerId", "securityOwnerId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = 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 "headquarterAddress":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("headquarterAddress"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.HeadquarterAddress = data
|
|
case "legalName":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("legalName"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.LegalName = data
|
|
case "websiteUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.WebsiteURL = data
|
|
case "privacyPolicyUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("privacyPolicyUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.PrivacyPolicyURL = data
|
|
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 "serviceLevelAgreementUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceLevelAgreementUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ServiceLevelAgreementURL = data
|
|
case "dataProcessingAgreementUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProcessingAgreementUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DataProcessingAgreementURL = data
|
|
case "certifications":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("certifications"))
|
|
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Certifications = data
|
|
case "securityPageUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityPageUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SecurityPageURL = data
|
|
case "trustPageUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustPageUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TrustPageURL = data
|
|
case "statusPageUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusPageUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.StatusPageURL = data
|
|
case "termsOfServiceUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("termsOfServiceUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TermsOfServiceURL = data
|
|
case "serviceStartAt":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceStartAt"))
|
|
data, err := ec.unmarshalNDatetime2timeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ServiceStartAt = data
|
|
case "serviceTerminationAt":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceTerminationAt"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ServiceTerminationAt = data
|
|
case "businessOwnerId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessOwnerId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.BusinessOwnerID = data
|
|
case "securityOwnerId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityOwnerId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SecurityOwnerID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateVendorRiskAssessmentInput(ctx context.Context, obj any) (types.CreateVendorRiskAssessmentInput, error) {
|
|
var it types.CreateVendorRiskAssessmentInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"vendorId", "assessedBy", "expiresAt", "dataSensitivity", "businessImpact", "notes"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "vendorId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.VendorID = data
|
|
case "assessedBy":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assessedBy"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AssessedBy = data
|
|
case "expiresAt":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt"))
|
|
data, err := ec.unmarshalNDatetime2timeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ExpiresAt = data
|
|
case "dataSensitivity":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataSensitivity"))
|
|
data, err := ec.unmarshalNDataSensitivity2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataSensitivity(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DataSensitivity = data
|
|
case "businessImpact":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessImpact"))
|
|
data, err := ec.unmarshalNBusinessImpact2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐBusinessImpact(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.BusinessImpact = 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
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteControlMesureMappingInput(ctx context.Context, obj any) (types.DeleteControlMesureMappingInput, error) {
|
|
var it types.DeleteControlMesureMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"controlId", "mesureId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "controlId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ControlID = data
|
|
case "mesureId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mesureId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.MesureID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteControlPolicyMappingInput(ctx context.Context, obj any) (types.DeleteControlPolicyMappingInput, error) {
|
|
var it types.DeleteControlPolicyMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"controlId", "policyId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "controlId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ControlID = data
|
|
case "policyId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.PolicyID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteEvidenceInput(ctx context.Context, obj any) (types.DeleteEvidenceInput, error) {
|
|
var it types.DeleteEvidenceInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"evidenceId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "evidenceId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("evidenceId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.EvidenceID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteFrameworkInput(ctx context.Context, obj any) (types.DeleteFrameworkInput, error) {
|
|
var it types.DeleteFrameworkInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"frameworkId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "frameworkId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("frameworkId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.FrameworkID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteOrganizationInput(ctx context.Context, obj any) (types.DeleteOrganizationInput, error) {
|
|
var it types.DeleteOrganizationInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeletePeopleInput(ctx context.Context, obj any) (types.DeletePeopleInput, error) {
|
|
var it types.DeletePeopleInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"peopleId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "peopleId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("peopleId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.PeopleID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeletePolicyInput(ctx context.Context, obj any) (types.DeletePolicyInput, error) {
|
|
var it types.DeletePolicyInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"policyId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "policyId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.PolicyID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteRiskInput(ctx context.Context, obj any) (types.DeleteRiskInput, error) {
|
|
var it types.DeleteRiskInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"riskId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "riskId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.RiskID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteRiskMesureMappingInput(ctx context.Context, obj any) (types.DeleteRiskMesureMappingInput, error) {
|
|
var it types.DeleteRiskMesureMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"riskId", "mesureId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "riskId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.RiskID = data
|
|
case "mesureId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mesureId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.MesureID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteRiskPolicyMappingInput(ctx context.Context, obj any) (types.DeleteRiskPolicyMappingInput, error) {
|
|
var it types.DeleteRiskPolicyMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"riskId", "policyId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "riskId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.RiskID = data
|
|
case "policyId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.PolicyID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteTaskInput(ctx context.Context, obj any) (types.DeleteTaskInput, error) {
|
|
var it types.DeleteTaskInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"taskId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "taskId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taskId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TaskID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteVendorComplianceReportInput(ctx context.Context, obj any) (types.DeleteVendorComplianceReportInput, error) {
|
|
var it types.DeleteVendorComplianceReportInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"reportId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "reportId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reportId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ReportID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteVendorInput(ctx context.Context, obj any) (types.DeleteVendorInput, error) {
|
|
var it types.DeleteVendorInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"vendorId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "vendorId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.VendorID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputEvidenceOrder(ctx context.Context, obj any) (types.EvidenceOrderBy, error) {
|
|
var it types.EvidenceOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNEvidenceOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputFrameworkOrder(ctx context.Context, obj any) (types.FrameworkOrderBy, error) {
|
|
var it types.FrameworkOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNFrameworkOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputFulfillEvidenceInput(ctx context.Context, obj any) (types.FulfillEvidenceInput, error) {
|
|
var it types.FulfillEvidenceInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"evidenceId", "name", "file", "url"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "evidenceId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("evidenceId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.EvidenceID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "file":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file"))
|
|
data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.File = 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
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputImportFrameworkInput(ctx context.Context, obj any) (types.ImportFrameworkInput, error) {
|
|
var it types.ImportFrameworkInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "file"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "file":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file"))
|
|
data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.File = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputImportMesureInput(ctx context.Context, obj any) (types.ImportMesureInput, error) {
|
|
var it types.ImportMesureInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "file"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "file":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file"))
|
|
data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.File = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputInviteUserInput(ctx context.Context, obj any) (types.InviteUserInput, error) {
|
|
var it types.InviteUserInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "email", "fullName"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "email":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Email = data
|
|
case "fullName":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.FullName = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputMesureOrder(ctx context.Context, obj any) (types.MesureOrderBy, error) {
|
|
var it types.MesureOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNMesureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputOrganizationOrder(ctx context.Context, obj any) (types.OrganizationOrder, error) {
|
|
var it types.OrganizationOrder
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNOrganizationOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputPeopleOrder(ctx context.Context, obj any) (types.PeopleOrderBy, error) {
|
|
var it types.PeopleOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNPeopleOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputPolicyOrder(ctx context.Context, obj any) (types.PolicyOrderBy, error) {
|
|
var it types.PolicyOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNPolicyOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputRemoveUserInput(ctx context.Context, obj any) (types.RemoveUserInput, error) {
|
|
var it types.RemoveUserInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "userId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "userId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.UserID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputRequestEvidenceInput(ctx context.Context, obj any) (types.RequestEvidenceInput, error) {
|
|
var it types.RequestEvidenceInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"taskId", "name", "type", "description"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "taskId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taskId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TaskID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "type":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
|
|
data, err := ec.unmarshalNEvidenceType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceType(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Type = data
|
|
case "description":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Description = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputRiskOrder(ctx context.Context, obj any) (types.RiskOrderBy, error) {
|
|
var it types.RiskOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNRiskOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputTaskOrder(ctx context.Context, obj any) (types.TaskOrderBy, error) {
|
|
var it types.TaskOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNTaskOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUnassignTaskInput(ctx context.Context, obj any) (types.UnassignTaskInput, error) {
|
|
var it types.UnassignTaskInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"taskId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "taskId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taskId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TaskID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateFrameworkInput(ctx context.Context, obj any) (types.UpdateFrameworkInput, error) {
|
|
var it types.UpdateFrameworkInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "name", "description"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "id":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = 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
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateMesureInput(ctx context.Context, obj any) (types.UpdateMesureInput, error) {
|
|
var it types.UpdateMesureInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "name", "description", "category", "state", "importance"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "id":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = 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 "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 "state":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state"))
|
|
data, err := ec.unmarshalOMesureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.State = data
|
|
case "importance":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("importance"))
|
|
data, err := ec.unmarshalOMesureImportance2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Importance = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Context, obj any) (types.UpdateOrganizationInput, error) {
|
|
var it types.UpdateOrganizationInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "name", "logo"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "logo":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logo"))
|
|
data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Logo = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdatePeopleInput(ctx context.Context, obj any) (types.UpdatePeopleInput, error) {
|
|
var it types.UpdatePeopleInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "fullName", "primaryEmailAddress", "additionalEmailAddresses", "kind"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "id":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ID = data
|
|
case "fullName":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.FullName = data
|
|
case "primaryEmailAddress":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("primaryEmailAddress"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.PrimaryEmailAddress = data
|
|
case "additionalEmailAddresses":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("additionalEmailAddresses"))
|
|
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AdditionalEmailAddresses = data
|
|
case "kind":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind"))
|
|
data, err := ec.unmarshalOPeopleKind2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Kind = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdatePolicyInput(ctx context.Context, obj any) (types.UpdatePolicyInput, error) {
|
|
var it types.UpdatePolicyInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "name", "content", "status", "reviewDate", "ownerId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "id":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "content":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Content = data
|
|
case "status":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
|
|
data, err := ec.unmarshalOPolicyStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Status = data
|
|
case "reviewDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reviewDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ReviewDate = data
|
|
case "ownerId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OwnerID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateRiskInput(ctx context.Context, obj any) (types.UpdateRiskInput, error) {
|
|
var it types.UpdateRiskInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "name", "description", "category", "ownerId", "treatment", "inherentLikelihood", "inherentImpact", "residualLikelihood", "residualImpact", "note"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "id":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = 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 "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 "ownerId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OwnerID = data
|
|
case "treatment":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("treatment"))
|
|
data, err := ec.unmarshalORiskTreatment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Treatment = data
|
|
case "inherentLikelihood":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inherentLikelihood"))
|
|
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.InherentLikelihood = data
|
|
case "inherentImpact":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inherentImpact"))
|
|
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.InherentImpact = data
|
|
case "residualLikelihood":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("residualLikelihood"))
|
|
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ResidualLikelihood = data
|
|
case "residualImpact":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("residualImpact"))
|
|
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ResidualImpact = 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
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateTaskInput(ctx context.Context, obj any) (types.UpdateTaskInput, error) {
|
|
var it types.UpdateTaskInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"taskId", "name", "description", "state", "timeEstimate"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "taskId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taskId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TaskID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = 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 "state":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state"))
|
|
data, err := ec.unmarshalOTaskState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.State = data
|
|
case "timeEstimate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timeEstimate"))
|
|
data, err := ec.unmarshalODuration2ᚖtimeᚐDuration(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TimeEstimate = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateVendorInput(ctx context.Context, obj any) (types.UpdateVendorInput, error) {
|
|
var it types.UpdateVendorInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "name", "description", "serviceStartAt", "serviceTerminationAt", "statusPageUrl", "termsOfServiceUrl", "privacyPolicyUrl", "serviceLevelAgreementUrl", "dataProcessingAgreementUrl", "websiteUrl", "legalName", "headquarterAddress", "category", "certifications", "securityPageUrl", "trustPageUrl", "businessOwnerId", "securityOwnerId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "id":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = 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 "serviceStartAt":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceStartAt"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ServiceStartAt = data
|
|
case "serviceTerminationAt":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceTerminationAt"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ServiceTerminationAt = data
|
|
case "statusPageUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusPageUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.StatusPageURL = data
|
|
case "termsOfServiceUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("termsOfServiceUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TermsOfServiceURL = data
|
|
case "privacyPolicyUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("privacyPolicyUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.PrivacyPolicyURL = data
|
|
case "serviceLevelAgreementUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceLevelAgreementUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ServiceLevelAgreementURL = data
|
|
case "dataProcessingAgreementUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProcessingAgreementUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DataProcessingAgreementURL = data
|
|
case "websiteUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.WebsiteURL = data
|
|
case "legalName":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("legalName"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.LegalName = data
|
|
case "headquarterAddress":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("headquarterAddress"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.HeadquarterAddress = data
|
|
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 "certifications":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("certifications"))
|
|
data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Certifications = data
|
|
case "securityPageUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityPageUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SecurityPageURL = data
|
|
case "trustPageUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustPageUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TrustPageURL = data
|
|
case "businessOwnerId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessOwnerId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.BusinessOwnerID = data
|
|
case "securityOwnerId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityOwnerId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SecurityOwnerID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUploadVendorComplianceReportInput(ctx context.Context, obj any) (types.UploadVendorComplianceReportInput, error) {
|
|
var it types.UploadVendorComplianceReportInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"vendorId", "reportDate", "validUntil", "reportName", "file"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "vendorId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.VendorID = data
|
|
case "reportDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reportDate"))
|
|
data, err := ec.unmarshalNDatetime2timeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ReportDate = data
|
|
case "validUntil":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validUntil"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ValidUntil = data
|
|
case "reportName":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reportName"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ReportName = data
|
|
case "file":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file"))
|
|
data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.File = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj any) (types.UserOrderBy, error) {
|
|
var it types.UserOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNUserOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐUserOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputVendorComplianceReportOrder(ctx context.Context, obj any) (types.VendorComplianceReportOrderBy, error) {
|
|
var it types.VendorComplianceReportOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNVendorComplianceReportOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputVendorOrder(ctx context.Context, obj any) (types.VendorOrderBy, error) {
|
|
var it types.VendorOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNVendorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputVendorRiskAssessmentOrder(ctx context.Context, obj any) (types.VendorRiskAssessmentOrder, error) {
|
|
var it types.VendorRiskAssessmentOrder
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"field", "direction"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNVendorRiskAssessmentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
// endregion **************************** input.gotpl *****************************
|
|
|
|
// region ************************** interface.gotpl ***************************
|
|
|
|
func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj types.Node) graphql.Marshaler {
|
|
switch obj := (obj).(type) {
|
|
case nil:
|
|
return graphql.Null
|
|
case types.VendorRiskAssessment:
|
|
return ec._VendorRiskAssessment(ctx, sel, &obj)
|
|
case *types.VendorRiskAssessment:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorRiskAssessment(ctx, sel, obj)
|
|
case types.VendorComplianceReport:
|
|
return ec._VendorComplianceReport(ctx, sel, &obj)
|
|
case *types.VendorComplianceReport:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorComplianceReport(ctx, sel, obj)
|
|
case types.Vendor:
|
|
return ec._Vendor(ctx, sel, &obj)
|
|
case *types.Vendor:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Vendor(ctx, sel, obj)
|
|
case types.User:
|
|
return ec._User(ctx, sel, &obj)
|
|
case *types.User:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._User(ctx, sel, obj)
|
|
case types.Task:
|
|
return ec._Task(ctx, sel, &obj)
|
|
case *types.Task:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Task(ctx, sel, obj)
|
|
case types.Risk:
|
|
return ec._Risk(ctx, sel, &obj)
|
|
case *types.Risk:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Risk(ctx, sel, obj)
|
|
case types.Policy:
|
|
return ec._Policy(ctx, sel, &obj)
|
|
case *types.Policy:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Policy(ctx, sel, obj)
|
|
case types.People:
|
|
return ec._People(ctx, sel, &obj)
|
|
case *types.People:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._People(ctx, sel, obj)
|
|
case types.Organization:
|
|
return ec._Organization(ctx, sel, &obj)
|
|
case *types.Organization:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Organization(ctx, sel, obj)
|
|
case types.Mesure:
|
|
return ec._Mesure(ctx, sel, &obj)
|
|
case *types.Mesure:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Mesure(ctx, sel, obj)
|
|
case types.Framework:
|
|
return ec._Framework(ctx, sel, &obj)
|
|
case *types.Framework:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Framework(ctx, sel, obj)
|
|
case types.Evidence:
|
|
return ec._Evidence(ctx, sel, &obj)
|
|
case *types.Evidence:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Evidence(ctx, sel, obj)
|
|
case types.Control:
|
|
return ec._Control(ctx, sel, &obj)
|
|
case *types.Control:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Control(ctx, sel, obj)
|
|
case types.Connector:
|
|
return ec._Connector(ctx, sel, &obj)
|
|
case *types.Connector:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Connector(ctx, sel, obj)
|
|
default:
|
|
panic(fmt.Errorf("unexpected type %T", obj))
|
|
}
|
|
}
|
|
|
|
// endregion ************************** interface.gotpl ***************************
|
|
|
|
// region **************************** object.gotpl ****************************
|
|
|
|
var assignTaskPayloadImplementors = []string{"AssignTaskPayload"}
|
|
|
|
func (ec *executionContext) _AssignTaskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.AssignTaskPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, assignTaskPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("AssignTaskPayload")
|
|
case "task":
|
|
out.Values[i] = ec._AssignTaskPayload_task(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var confirmEmailPayloadImplementors = []string{"ConfirmEmailPayload"}
|
|
|
|
func (ec *executionContext) _ConfirmEmailPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ConfirmEmailPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, confirmEmailPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ConfirmEmailPayload")
|
|
case "success":
|
|
out.Values[i] = ec._ConfirmEmailPayload_success(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var connectorImplementors = []string{"Connector", "Node"}
|
|
|
|
func (ec *executionContext) _Connector(ctx context.Context, sel ast.SelectionSet, obj *types.Connector) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, connectorImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Connector")
|
|
case "id":
|
|
out.Values[i] = ec._Connector_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._Connector_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "type":
|
|
out.Values[i] = ec._Connector_type(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._Connector_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Connector_updatedAt(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var connectorConnectionImplementors = []string{"ConnectorConnection"}
|
|
|
|
func (ec *executionContext) _ConnectorConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ConnectorConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, connectorConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ConnectorConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._ConnectorConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._ConnectorConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var connectorEdgeImplementors = []string{"ConnectorEdge"}
|
|
|
|
func (ec *executionContext) _ConnectorEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ConnectorEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, connectorEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ConnectorEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._ConnectorEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._ConnectorEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var controlImplementors = []string{"Control", "Node"}
|
|
|
|
func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, obj *types.Control) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, controlImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Control")
|
|
case "id":
|
|
out.Values[i] = ec._Control_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "referenceId":
|
|
out.Values[i] = ec._Control_referenceId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._Control_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec._Control_description(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "mesures":
|
|
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._Control_mesures(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "policies":
|
|
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._Control_policies(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "createdAt":
|
|
out.Values[i] = ec._Control_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Control_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var controlConnectionImplementors = []string{"ControlConnection"}
|
|
|
|
func (ec *executionContext) _ControlConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ControlConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, controlConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ControlConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._ControlConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._ControlConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var controlEdgeImplementors = []string{"ControlEdge"}
|
|
|
|
func (ec *executionContext) _ControlEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ControlEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, controlEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ControlEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._ControlEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._ControlEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createControlMesureMappingPayloadImplementors = []string{"CreateControlMesureMappingPayload"}
|
|
|
|
func (ec *executionContext) _CreateControlMesureMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateControlMesureMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createControlMesureMappingPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateControlMesureMappingPayload")
|
|
case "success":
|
|
out.Values[i] = ec._CreateControlMesureMappingPayload_success(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createControlPolicyMappingPayloadImplementors = []string{"CreateControlPolicyMappingPayload"}
|
|
|
|
func (ec *executionContext) _CreateControlPolicyMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateControlPolicyMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createControlPolicyMappingPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateControlPolicyMappingPayload")
|
|
case "success":
|
|
out.Values[i] = ec._CreateControlPolicyMappingPayload_success(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createEvidencePayloadImplementors = []string{"CreateEvidencePayload"}
|
|
|
|
func (ec *executionContext) _CreateEvidencePayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateEvidencePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createEvidencePayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateEvidencePayload")
|
|
case "evidenceEdge":
|
|
out.Values[i] = ec._CreateEvidencePayload_evidenceEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createFrameworkPayloadImplementors = []string{"CreateFrameworkPayload"}
|
|
|
|
func (ec *executionContext) _CreateFrameworkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateFrameworkPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createFrameworkPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateFrameworkPayload")
|
|
case "frameworkEdge":
|
|
out.Values[i] = ec._CreateFrameworkPayload_frameworkEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createMesurePayloadImplementors = []string{"CreateMesurePayload"}
|
|
|
|
func (ec *executionContext) _CreateMesurePayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateMesurePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createMesurePayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateMesurePayload")
|
|
case "mesureEdge":
|
|
out.Values[i] = ec._CreateMesurePayload_mesureEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createOrganizationPayloadImplementors = []string{"CreateOrganizationPayload"}
|
|
|
|
func (ec *executionContext) _CreateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateOrganizationPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createOrganizationPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateOrganizationPayload")
|
|
case "organizationEdge":
|
|
out.Values[i] = ec._CreateOrganizationPayload_organizationEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createPeoplePayloadImplementors = []string{"CreatePeoplePayload"}
|
|
|
|
func (ec *executionContext) _CreatePeoplePayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreatePeoplePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createPeoplePayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreatePeoplePayload")
|
|
case "peopleEdge":
|
|
out.Values[i] = ec._CreatePeoplePayload_peopleEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createPolicyPayloadImplementors = []string{"CreatePolicyPayload"}
|
|
|
|
func (ec *executionContext) _CreatePolicyPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreatePolicyPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createPolicyPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreatePolicyPayload")
|
|
case "policyEdge":
|
|
out.Values[i] = ec._CreatePolicyPayload_policyEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createRiskMesureMappingPayloadImplementors = []string{"CreateRiskMesureMappingPayload"}
|
|
|
|
func (ec *executionContext) _CreateRiskMesureMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateRiskMesureMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createRiskMesureMappingPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateRiskMesureMappingPayload")
|
|
case "success":
|
|
out.Values[i] = ec._CreateRiskMesureMappingPayload_success(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createRiskPayloadImplementors = []string{"CreateRiskPayload"}
|
|
|
|
func (ec *executionContext) _CreateRiskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateRiskPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createRiskPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateRiskPayload")
|
|
case "riskEdge":
|
|
out.Values[i] = ec._CreateRiskPayload_riskEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createRiskPolicyMappingPayloadImplementors = []string{"CreateRiskPolicyMappingPayload"}
|
|
|
|
func (ec *executionContext) _CreateRiskPolicyMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateRiskPolicyMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createRiskPolicyMappingPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateRiskPolicyMappingPayload")
|
|
case "success":
|
|
out.Values[i] = ec._CreateRiskPolicyMappingPayload_success(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createTaskPayloadImplementors = []string{"CreateTaskPayload"}
|
|
|
|
func (ec *executionContext) _CreateTaskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateTaskPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createTaskPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateTaskPayload")
|
|
case "taskEdge":
|
|
out.Values[i] = ec._CreateTaskPayload_taskEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createVendorPayloadImplementors = []string{"CreateVendorPayload"}
|
|
|
|
func (ec *executionContext) _CreateVendorPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateVendorPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createVendorPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateVendorPayload")
|
|
case "vendorEdge":
|
|
out.Values[i] = ec._CreateVendorPayload_vendorEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createVendorRiskAssessmentPayloadImplementors = []string{"CreateVendorRiskAssessmentPayload"}
|
|
|
|
func (ec *executionContext) _CreateVendorRiskAssessmentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateVendorRiskAssessmentPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createVendorRiskAssessmentPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateVendorRiskAssessmentPayload")
|
|
case "vendorRiskAssessmentEdge":
|
|
out.Values[i] = ec._CreateVendorRiskAssessmentPayload_vendorRiskAssessmentEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteControlMesureMappingPayloadImplementors = []string{"DeleteControlMesureMappingPayload"}
|
|
|
|
func (ec *executionContext) _DeleteControlMesureMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteControlMesureMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteControlMesureMappingPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteControlMesureMappingPayload")
|
|
case "success":
|
|
out.Values[i] = ec._DeleteControlMesureMappingPayload_success(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteControlPolicyMappingPayloadImplementors = []string{"DeleteControlPolicyMappingPayload"}
|
|
|
|
func (ec *executionContext) _DeleteControlPolicyMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteControlPolicyMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteControlPolicyMappingPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteControlPolicyMappingPayload")
|
|
case "success":
|
|
out.Values[i] = ec._DeleteControlPolicyMappingPayload_success(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteEvidencePayloadImplementors = []string{"DeleteEvidencePayload"}
|
|
|
|
func (ec *executionContext) _DeleteEvidencePayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteEvidencePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteEvidencePayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteEvidencePayload")
|
|
case "deletedEvidenceId":
|
|
out.Values[i] = ec._DeleteEvidencePayload_deletedEvidenceId(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteFrameworkPayloadImplementors = []string{"DeleteFrameworkPayload"}
|
|
|
|
func (ec *executionContext) _DeleteFrameworkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteFrameworkPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteFrameworkPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteFrameworkPayload")
|
|
case "deletedFrameworkId":
|
|
out.Values[i] = ec._DeleteFrameworkPayload_deletedFrameworkId(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteOrganizationPayloadImplementors = []string{"DeleteOrganizationPayload"}
|
|
|
|
func (ec *executionContext) _DeleteOrganizationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteOrganizationPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteOrganizationPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteOrganizationPayload")
|
|
case "deletedOrganizationId":
|
|
out.Values[i] = ec._DeleteOrganizationPayload_deletedOrganizationId(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deletePeoplePayloadImplementors = []string{"DeletePeoplePayload"}
|
|
|
|
func (ec *executionContext) _DeletePeoplePayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeletePeoplePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deletePeoplePayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeletePeoplePayload")
|
|
case "deletedPeopleId":
|
|
out.Values[i] = ec._DeletePeoplePayload_deletedPeopleId(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deletePolicyPayloadImplementors = []string{"DeletePolicyPayload"}
|
|
|
|
func (ec *executionContext) _DeletePolicyPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeletePolicyPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deletePolicyPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeletePolicyPayload")
|
|
case "deletedPolicyId":
|
|
out.Values[i] = ec._DeletePolicyPayload_deletedPolicyId(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteRiskMesureMappingPayloadImplementors = []string{"DeleteRiskMesureMappingPayload"}
|
|
|
|
func (ec *executionContext) _DeleteRiskMesureMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteRiskMesureMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteRiskMesureMappingPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteRiskMesureMappingPayload")
|
|
case "success":
|
|
out.Values[i] = ec._DeleteRiskMesureMappingPayload_success(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteRiskPayloadImplementors = []string{"DeleteRiskPayload"}
|
|
|
|
func (ec *executionContext) _DeleteRiskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteRiskPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteRiskPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteRiskPayload")
|
|
case "deletedRiskId":
|
|
out.Values[i] = ec._DeleteRiskPayload_deletedRiskId(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteRiskPolicyMappingPayloadImplementors = []string{"DeleteRiskPolicyMappingPayload"}
|
|
|
|
func (ec *executionContext) _DeleteRiskPolicyMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteRiskPolicyMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteRiskPolicyMappingPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteRiskPolicyMappingPayload")
|
|
case "success":
|
|
out.Values[i] = ec._DeleteRiskPolicyMappingPayload_success(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteTaskPayloadImplementors = []string{"DeleteTaskPayload"}
|
|
|
|
func (ec *executionContext) _DeleteTaskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteTaskPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteTaskPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteTaskPayload")
|
|
case "deletedTaskId":
|
|
out.Values[i] = ec._DeleteTaskPayload_deletedTaskId(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteVendorComplianceReportPayloadImplementors = []string{"DeleteVendorComplianceReportPayload"}
|
|
|
|
func (ec *executionContext) _DeleteVendorComplianceReportPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteVendorComplianceReportPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteVendorComplianceReportPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteVendorComplianceReportPayload")
|
|
case "deletedVendorComplianceReportId":
|
|
out.Values[i] = ec._DeleteVendorComplianceReportPayload_deletedVendorComplianceReportId(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteVendorPayloadImplementors = []string{"DeleteVendorPayload"}
|
|
|
|
func (ec *executionContext) _DeleteVendorPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteVendorPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteVendorPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteVendorPayload")
|
|
case "deletedVendorId":
|
|
out.Values[i] = ec._DeleteVendorPayload_deletedVendorId(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var evidenceImplementors = []string{"Evidence", "Node"}
|
|
|
|
func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, obj *types.Evidence) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, evidenceImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Evidence")
|
|
case "id":
|
|
out.Values[i] = ec._Evidence_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "fileUrl":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Evidence_fileUrl(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "mimeType":
|
|
out.Values[i] = ec._Evidence_mimeType(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "size":
|
|
out.Values[i] = ec._Evidence_size(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "state":
|
|
out.Values[i] = ec._Evidence_state(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "type":
|
|
out.Values[i] = ec._Evidence_type(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "filename":
|
|
out.Values[i] = ec._Evidence_filename(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "url":
|
|
out.Values[i] = ec._Evidence_url(ctx, field, obj)
|
|
case "description":
|
|
out.Values[i] = ec._Evidence_description(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._Evidence_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Evidence_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var evidenceConnectionImplementors = []string{"EvidenceConnection"}
|
|
|
|
func (ec *executionContext) _EvidenceConnection(ctx context.Context, sel ast.SelectionSet, obj *types.EvidenceConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, evidenceConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("EvidenceConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._EvidenceConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._EvidenceConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var evidenceEdgeImplementors = []string{"EvidenceEdge"}
|
|
|
|
func (ec *executionContext) _EvidenceEdge(ctx context.Context, sel ast.SelectionSet, obj *types.EvidenceEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, evidenceEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("EvidenceEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._EvidenceEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._EvidenceEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var frameworkImplementors = []string{"Framework", "Node"}
|
|
|
|
func (ec *executionContext) _Framework(ctx context.Context, sel ast.SelectionSet, obj *types.Framework) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, frameworkImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Framework")
|
|
case "id":
|
|
out.Values[i] = ec._Framework_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._Framework_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec._Framework_description(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "controls":
|
|
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._Framework_controls(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "createdAt":
|
|
out.Values[i] = ec._Framework_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Framework_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var frameworkConnectionImplementors = []string{"FrameworkConnection"}
|
|
|
|
func (ec *executionContext) _FrameworkConnection(ctx context.Context, sel ast.SelectionSet, obj *types.FrameworkConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, frameworkConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("FrameworkConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._FrameworkConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._FrameworkConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var frameworkEdgeImplementors = []string{"FrameworkEdge"}
|
|
|
|
func (ec *executionContext) _FrameworkEdge(ctx context.Context, sel ast.SelectionSet, obj *types.FrameworkEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, frameworkEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("FrameworkEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._FrameworkEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._FrameworkEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var fulfillEvidencePayloadImplementors = []string{"FulfillEvidencePayload"}
|
|
|
|
func (ec *executionContext) _FulfillEvidencePayload(ctx context.Context, sel ast.SelectionSet, obj *types.FulfillEvidencePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, fulfillEvidencePayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("FulfillEvidencePayload")
|
|
case "evidenceEdge":
|
|
out.Values[i] = ec._FulfillEvidencePayload_evidenceEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var importFrameworkPayloadImplementors = []string{"ImportFrameworkPayload"}
|
|
|
|
func (ec *executionContext) _ImportFrameworkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ImportFrameworkPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, importFrameworkPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ImportFrameworkPayload")
|
|
case "frameworkEdge":
|
|
out.Values[i] = ec._ImportFrameworkPayload_frameworkEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var importMesurePayloadImplementors = []string{"ImportMesurePayload"}
|
|
|
|
func (ec *executionContext) _ImportMesurePayload(ctx context.Context, sel ast.SelectionSet, obj *types.ImportMesurePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, importMesurePayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ImportMesurePayload")
|
|
case "mesureEdges":
|
|
out.Values[i] = ec._ImportMesurePayload_mesureEdges(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var inviteUserPayloadImplementors = []string{"InviteUserPayload"}
|
|
|
|
func (ec *executionContext) _InviteUserPayload(ctx context.Context, sel ast.SelectionSet, obj *types.InviteUserPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, inviteUserPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("InviteUserPayload")
|
|
case "success":
|
|
out.Values[i] = ec._InviteUserPayload_success(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var mesureImplementors = []string{"Mesure", "Node"}
|
|
|
|
func (ec *executionContext) _Mesure(ctx context.Context, sel ast.SelectionSet, obj *types.Mesure) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, mesureImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Mesure")
|
|
case "id":
|
|
out.Values[i] = ec._Mesure_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "category":
|
|
out.Values[i] = ec._Mesure_category(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._Mesure_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec._Mesure_description(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "state":
|
|
out.Values[i] = ec._Mesure_state(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "importance":
|
|
out.Values[i] = ec._Mesure_importance(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "tasks":
|
|
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._Mesure_tasks(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "risks":
|
|
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._Mesure_risks(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "controls":
|
|
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._Mesure_controls(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "createdAt":
|
|
out.Values[i] = ec._Mesure_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Mesure_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var mesureConnectionImplementors = []string{"MesureConnection"}
|
|
|
|
func (ec *executionContext) _MesureConnection(ctx context.Context, sel ast.SelectionSet, obj *types.MesureConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, mesureConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("MesureConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._MesureConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._MesureConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var mesureEdgeImplementors = []string{"MesureEdge"}
|
|
|
|
func (ec *executionContext) _MesureEdge(ctx context.Context, sel ast.SelectionSet, obj *types.MesureEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, mesureEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("MesureEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._MesureEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._MesureEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
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)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
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 "createOrganization":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createOrganization(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateOrganization":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateOrganization(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteOrganization":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteOrganization(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "confirmEmail":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_confirmEmail(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "inviteUser":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_inviteUser(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "removeUser":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_removeUser(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createPeople":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createPeople(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updatePeople":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updatePeople(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deletePeople":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deletePeople(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createVendor":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createVendor(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateVendor":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateVendor(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteVendor":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteVendor(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createFramework":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createFramework(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateFramework":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateFramework(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "importFramework":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_importFramework(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteFramework":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteFramework(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createMesure":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createMesure(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateMesure":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateMesure(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "importMesure":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_importMesure(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createControlMesureMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createControlMesureMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createControlPolicyMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createControlPolicyMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteControlMesureMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteControlMesureMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteControlPolicyMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteControlPolicyMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createTask":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createTask(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateTask":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateTask(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteTask":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteTask(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "assignTask":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_assignTask(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "unassignTask":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_unassignTask(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createRisk":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createRisk(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateRisk":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateRisk(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteRisk":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteRisk(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createRiskMesureMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createRiskMesureMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteRiskMesureMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteRiskMesureMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createRiskPolicyMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createRiskPolicyMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteRiskPolicyMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteRiskPolicyMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "requestEvidence":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_requestEvidence(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "fulfillEvidence":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_fulfillEvidence(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createEvidence":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createEvidence(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteEvidence":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteEvidence(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "uploadVendorComplianceReport":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_uploadVendorComplianceReport(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteVendorComplianceReport":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteVendorComplianceReport(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createPolicy":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createPolicy(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updatePolicy":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updatePolicy(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deletePolicy":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deletePolicy(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createVendorRiskAssessment":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createVendorRiskAssessment(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var organizationImplementors = []string{"Organization", "Node"}
|
|
|
|
func (ec *executionContext) _Organization(ctx context.Context, sel ast.SelectionSet, obj *types.Organization) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, organizationImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Organization")
|
|
case "id":
|
|
out.Values[i] = ec._Organization_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._Organization_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "logoUrl":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Organization_logoUrl(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "users":
|
|
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._Organization_users(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "connectors":
|
|
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._Organization_connectors(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "frameworks":
|
|
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._Organization_frameworks(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "vendors":
|
|
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._Organization_vendors(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "peoples":
|
|
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._Organization_peoples(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "policies":
|
|
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._Organization_policies(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "mesures":
|
|
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._Organization_mesures(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "risks":
|
|
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._Organization_risks(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "createdAt":
|
|
out.Values[i] = ec._Organization_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Organization_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var organizationConnectionImplementors = []string{"OrganizationConnection"}
|
|
|
|
func (ec *executionContext) _OrganizationConnection(ctx context.Context, sel ast.SelectionSet, obj *types.OrganizationConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, organizationConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("OrganizationConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._OrganizationConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._OrganizationConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var organizationEdgeImplementors = []string{"OrganizationEdge"}
|
|
|
|
func (ec *executionContext) _OrganizationEdge(ctx context.Context, sel ast.SelectionSet, obj *types.OrganizationEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, organizationEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("OrganizationEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._OrganizationEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._OrganizationEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var pageInfoImplementors = []string{"PageInfo"}
|
|
|
|
func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *types.PageInfo) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, pageInfoImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("PageInfo")
|
|
case "hasNextPage":
|
|
out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "hasPreviousPage":
|
|
out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "startCursor":
|
|
out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj)
|
|
case "endCursor":
|
|
out.Values[i] = ec._PageInfo_endCursor(ctx, field, obj)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var peopleImplementors = []string{"People", "Node"}
|
|
|
|
func (ec *executionContext) _People(ctx context.Context, sel ast.SelectionSet, obj *types.People) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, peopleImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("People")
|
|
case "id":
|
|
out.Values[i] = ec._People_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "fullName":
|
|
out.Values[i] = ec._People_fullName(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "primaryEmailAddress":
|
|
out.Values[i] = ec._People_primaryEmailAddress(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "additionalEmailAddresses":
|
|
out.Values[i] = ec._People_additionalEmailAddresses(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "kind":
|
|
out.Values[i] = ec._People_kind(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._People_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._People_updatedAt(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var peopleConnectionImplementors = []string{"PeopleConnection"}
|
|
|
|
func (ec *executionContext) _PeopleConnection(ctx context.Context, sel ast.SelectionSet, obj *types.PeopleConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, peopleConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("PeopleConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._PeopleConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._PeopleConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var peopleEdgeImplementors = []string{"PeopleEdge"}
|
|
|
|
func (ec *executionContext) _PeopleEdge(ctx context.Context, sel ast.SelectionSet, obj *types.PeopleEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, peopleEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("PeopleEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._PeopleEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._PeopleEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var policyImplementors = []string{"Policy", "Node"}
|
|
|
|
func (ec *executionContext) _Policy(ctx context.Context, sel ast.SelectionSet, obj *types.Policy) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, policyImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Policy")
|
|
case "id":
|
|
out.Values[i] = ec._Policy_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._Policy_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "status":
|
|
out.Values[i] = ec._Policy_status(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "content":
|
|
out.Values[i] = ec._Policy_content(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "reviewDate":
|
|
out.Values[i] = ec._Policy_reviewDate(ctx, field, obj)
|
|
case "owner":
|
|
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._Policy_owner(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "controls":
|
|
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._Policy_controls(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "createdAt":
|
|
out.Values[i] = ec._Policy_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Policy_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var policyConnectionImplementors = []string{"PolicyConnection"}
|
|
|
|
func (ec *executionContext) _PolicyConnection(ctx context.Context, sel ast.SelectionSet, obj *types.PolicyConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, policyConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("PolicyConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._PolicyConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._PolicyConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var policyEdgeImplementors = []string{"PolicyEdge"}
|
|
|
|
func (ec *executionContext) _PolicyEdge(ctx context.Context, sel ast.SelectionSet, obj *types.PolicyEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, policyEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("PolicyEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._PolicyEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._PolicyEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
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)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
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 "node":
|
|
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_node(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 "viewer":
|
|
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_viewer(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)
|
|
})
|
|
case "__schema":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Query___schema(ctx, field)
|
|
})
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var removeUserPayloadImplementors = []string{"RemoveUserPayload"}
|
|
|
|
func (ec *executionContext) _RemoveUserPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RemoveUserPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, removeUserPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("RemoveUserPayload")
|
|
case "success":
|
|
out.Values[i] = ec._RemoveUserPayload_success(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var requestEvidencePayloadImplementors = []string{"RequestEvidencePayload"}
|
|
|
|
func (ec *executionContext) _RequestEvidencePayload(ctx context.Context, sel ast.SelectionSet, obj *types.RequestEvidencePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, requestEvidencePayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("RequestEvidencePayload")
|
|
case "evidenceEdge":
|
|
out.Values[i] = ec._RequestEvidencePayload_evidenceEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var riskImplementors = []string{"Risk", "Node"}
|
|
|
|
func (ec *executionContext) _Risk(ctx context.Context, sel ast.SelectionSet, obj *types.Risk) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, riskImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Risk")
|
|
case "id":
|
|
out.Values[i] = ec._Risk_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._Risk_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec._Risk_description(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "category":
|
|
out.Values[i] = ec._Risk_category(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "treatment":
|
|
out.Values[i] = ec._Risk_treatment(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "inherentLikelihood":
|
|
out.Values[i] = ec._Risk_inherentLikelihood(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "inherentImpact":
|
|
out.Values[i] = ec._Risk_inherentImpact(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "inherentSeverity":
|
|
out.Values[i] = ec._Risk_inherentSeverity(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "residualLikelihood":
|
|
out.Values[i] = ec._Risk_residualLikelihood(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "residualImpact":
|
|
out.Values[i] = ec._Risk_residualImpact(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "residualSeverity":
|
|
out.Values[i] = ec._Risk_residualSeverity(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "note":
|
|
out.Values[i] = ec._Risk_note(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "owner":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Risk_owner(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "mesures":
|
|
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._Risk_mesures(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "policies":
|
|
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._Risk_policies(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "controls":
|
|
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._Risk_controls(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "createdAt":
|
|
out.Values[i] = ec._Risk_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Risk_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var riskConnectionImplementors = []string{"RiskConnection"}
|
|
|
|
func (ec *executionContext) _RiskConnection(ctx context.Context, sel ast.SelectionSet, obj *types.RiskConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, riskConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("RiskConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._RiskConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._RiskConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var riskEdgeImplementors = []string{"RiskEdge"}
|
|
|
|
func (ec *executionContext) _RiskEdge(ctx context.Context, sel ast.SelectionSet, obj *types.RiskEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, riskEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("RiskEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._RiskEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._RiskEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sessionImplementors = []string{"Session"}
|
|
|
|
func (ec *executionContext) _Session(ctx context.Context, sel ast.SelectionSet, obj *types.Session) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sessionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Session")
|
|
case "id":
|
|
out.Values[i] = ec._Session_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "expiresAt":
|
|
out.Values[i] = ec._Session_expiresAt(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var taskImplementors = []string{"Task", "Node"}
|
|
|
|
func (ec *executionContext) _Task(ctx context.Context, sel ast.SelectionSet, obj *types.Task) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, taskImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Task")
|
|
case "id":
|
|
out.Values[i] = ec._Task_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._Task_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec._Task_description(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "state":
|
|
out.Values[i] = ec._Task_state(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "timeEstimate":
|
|
out.Values[i] = ec._Task_timeEstimate(ctx, field, obj)
|
|
case "assignedTo":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Task_assignedTo(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "evidences":
|
|
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._Task_evidences(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "createdAt":
|
|
out.Values[i] = ec._Task_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Task_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var taskConnectionImplementors = []string{"TaskConnection"}
|
|
|
|
func (ec *executionContext) _TaskConnection(ctx context.Context, sel ast.SelectionSet, obj *types.TaskConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, taskConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("TaskConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._TaskConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._TaskConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var taskEdgeImplementors = []string{"TaskEdge"}
|
|
|
|
func (ec *executionContext) _TaskEdge(ctx context.Context, sel ast.SelectionSet, obj *types.TaskEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, taskEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("TaskEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._TaskEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._TaskEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var unassignTaskPayloadImplementors = []string{"UnassignTaskPayload"}
|
|
|
|
func (ec *executionContext) _UnassignTaskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UnassignTaskPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, unassignTaskPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UnassignTaskPayload")
|
|
case "task":
|
|
out.Values[i] = ec._UnassignTaskPayload_task(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var updateFrameworkPayloadImplementors = []string{"UpdateFrameworkPayload"}
|
|
|
|
func (ec *executionContext) _UpdateFrameworkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateFrameworkPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateFrameworkPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UpdateFrameworkPayload")
|
|
case "framework":
|
|
out.Values[i] = ec._UpdateFrameworkPayload_framework(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var updateMesurePayloadImplementors = []string{"UpdateMesurePayload"}
|
|
|
|
func (ec *executionContext) _UpdateMesurePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateMesurePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateMesurePayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UpdateMesurePayload")
|
|
case "mesure":
|
|
out.Values[i] = ec._UpdateMesurePayload_mesure(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var updateOrganizationPayloadImplementors = []string{"UpdateOrganizationPayload"}
|
|
|
|
func (ec *executionContext) _UpdateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateOrganizationPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateOrganizationPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UpdateOrganizationPayload")
|
|
case "organization":
|
|
out.Values[i] = ec._UpdateOrganizationPayload_organization(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var updatePeoplePayloadImplementors = []string{"UpdatePeoplePayload"}
|
|
|
|
func (ec *executionContext) _UpdatePeoplePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdatePeoplePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updatePeoplePayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UpdatePeoplePayload")
|
|
case "people":
|
|
out.Values[i] = ec._UpdatePeoplePayload_people(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var updatePolicyPayloadImplementors = []string{"UpdatePolicyPayload"}
|
|
|
|
func (ec *executionContext) _UpdatePolicyPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdatePolicyPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updatePolicyPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UpdatePolicyPayload")
|
|
case "policy":
|
|
out.Values[i] = ec._UpdatePolicyPayload_policy(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var updateRiskPayloadImplementors = []string{"UpdateRiskPayload"}
|
|
|
|
func (ec *executionContext) _UpdateRiskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateRiskPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateRiskPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UpdateRiskPayload")
|
|
case "risk":
|
|
out.Values[i] = ec._UpdateRiskPayload_risk(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var updateTaskPayloadImplementors = []string{"UpdateTaskPayload"}
|
|
|
|
func (ec *executionContext) _UpdateTaskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateTaskPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateTaskPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UpdateTaskPayload")
|
|
case "task":
|
|
out.Values[i] = ec._UpdateTaskPayload_task(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var updateVendorPayloadImplementors = []string{"UpdateVendorPayload"}
|
|
|
|
func (ec *executionContext) _UpdateVendorPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateVendorPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateVendorPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UpdateVendorPayload")
|
|
case "vendor":
|
|
out.Values[i] = ec._UpdateVendorPayload_vendor(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var uploadVendorComplianceReportPayloadImplementors = []string{"UploadVendorComplianceReportPayload"}
|
|
|
|
func (ec *executionContext) _UploadVendorComplianceReportPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UploadVendorComplianceReportPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, uploadVendorComplianceReportPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UploadVendorComplianceReportPayload")
|
|
case "vendorComplianceReportEdge":
|
|
out.Values[i] = ec._UploadVendorComplianceReportPayload_vendorComplianceReportEdge(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var userImplementors = []string{"User", "Node"}
|
|
|
|
func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *types.User) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("User")
|
|
case "id":
|
|
out.Values[i] = ec._User_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "fullName":
|
|
out.Values[i] = ec._User_fullName(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "email":
|
|
out.Values[i] = ec._User_email(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._User_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._User_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "people":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._User_people(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var userConnectionImplementors = []string{"UserConnection"}
|
|
|
|
func (ec *executionContext) _UserConnection(ctx context.Context, sel ast.SelectionSet, obj *types.UserConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, userConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UserConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._UserConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._UserConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var userEdgeImplementors = []string{"UserEdge"}
|
|
|
|
func (ec *executionContext) _UserEdge(ctx context.Context, sel ast.SelectionSet, obj *types.UserEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, userEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UserEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._UserEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._UserEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var vendorImplementors = []string{"Vendor", "Node"}
|
|
|
|
func (ec *executionContext) _Vendor(ctx context.Context, sel ast.SelectionSet, obj *types.Vendor) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Vendor")
|
|
case "id":
|
|
out.Values[i] = ec._Vendor_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._Vendor_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec._Vendor_description(ctx, field, obj)
|
|
case "complianceReports":
|
|
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._Vendor_complianceReports(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "riskAssessments":
|
|
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._Vendor_riskAssessments(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "businessOwner":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Vendor_businessOwner(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "securityOwner":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Vendor_securityOwner(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "serviceStartAt":
|
|
out.Values[i] = ec._Vendor_serviceStartAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "serviceTerminationAt":
|
|
out.Values[i] = ec._Vendor_serviceTerminationAt(ctx, field, obj)
|
|
case "statusPageUrl":
|
|
out.Values[i] = ec._Vendor_statusPageUrl(ctx, field, obj)
|
|
case "termsOfServiceUrl":
|
|
out.Values[i] = ec._Vendor_termsOfServiceUrl(ctx, field, obj)
|
|
case "privacyPolicyUrl":
|
|
out.Values[i] = ec._Vendor_privacyPolicyUrl(ctx, field, obj)
|
|
case "serviceLevelAgreementUrl":
|
|
out.Values[i] = ec._Vendor_serviceLevelAgreementUrl(ctx, field, obj)
|
|
case "dataProcessingAgreementUrl":
|
|
out.Values[i] = ec._Vendor_dataProcessingAgreementUrl(ctx, field, obj)
|
|
case "certifications":
|
|
out.Values[i] = ec._Vendor_certifications(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "securityPageUrl":
|
|
out.Values[i] = ec._Vendor_securityPageUrl(ctx, field, obj)
|
|
case "trustPageUrl":
|
|
out.Values[i] = ec._Vendor_trustPageUrl(ctx, field, obj)
|
|
case "headquarterAddress":
|
|
out.Values[i] = ec._Vendor_headquarterAddress(ctx, field, obj)
|
|
case "legalName":
|
|
out.Values[i] = ec._Vendor_legalName(ctx, field, obj)
|
|
case "websiteUrl":
|
|
out.Values[i] = ec._Vendor_websiteUrl(ctx, field, obj)
|
|
case "createdAt":
|
|
out.Values[i] = ec._Vendor_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Vendor_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var vendorComplianceReportImplementors = []string{"VendorComplianceReport", "Node"}
|
|
|
|
func (ec *executionContext) _VendorComplianceReport(ctx context.Context, sel ast.SelectionSet, obj *types.VendorComplianceReport) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorComplianceReportImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("VendorComplianceReport")
|
|
case "id":
|
|
out.Values[i] = ec._VendorComplianceReport_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "vendor":
|
|
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._VendorComplianceReport_vendor(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "reportDate":
|
|
out.Values[i] = ec._VendorComplianceReport_reportDate(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "validUntil":
|
|
out.Values[i] = ec._VendorComplianceReport_validUntil(ctx, field, obj)
|
|
case "reportName":
|
|
out.Values[i] = ec._VendorComplianceReport_reportName(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "fileUrl":
|
|
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._VendorComplianceReport_fileUrl(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "fileSize":
|
|
out.Values[i] = ec._VendorComplianceReport_fileSize(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._VendorComplianceReport_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._VendorComplianceReport_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var vendorComplianceReportConnectionImplementors = []string{"VendorComplianceReportConnection"}
|
|
|
|
func (ec *executionContext) _VendorComplianceReportConnection(ctx context.Context, sel ast.SelectionSet, obj *types.VendorComplianceReportConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorComplianceReportConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("VendorComplianceReportConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._VendorComplianceReportConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._VendorComplianceReportConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var vendorComplianceReportEdgeImplementors = []string{"VendorComplianceReportEdge"}
|
|
|
|
func (ec *executionContext) _VendorComplianceReportEdge(ctx context.Context, sel ast.SelectionSet, obj *types.VendorComplianceReportEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorComplianceReportEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("VendorComplianceReportEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._VendorComplianceReportEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._VendorComplianceReportEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var vendorConnectionImplementors = []string{"VendorConnection"}
|
|
|
|
func (ec *executionContext) _VendorConnection(ctx context.Context, sel ast.SelectionSet, obj *types.VendorConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("VendorConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._VendorConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._VendorConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var vendorEdgeImplementors = []string{"VendorEdge"}
|
|
|
|
func (ec *executionContext) _VendorEdge(ctx context.Context, sel ast.SelectionSet, obj *types.VendorEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("VendorEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._VendorEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._VendorEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var vendorRiskAssessmentImplementors = []string{"VendorRiskAssessment", "Node"}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessment(ctx context.Context, sel ast.SelectionSet, obj *types.VendorRiskAssessment) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorRiskAssessmentImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("VendorRiskAssessment")
|
|
case "id":
|
|
out.Values[i] = ec._VendorRiskAssessment_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "vendor":
|
|
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._VendorRiskAssessment_vendor(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "assessedAt":
|
|
out.Values[i] = ec._VendorRiskAssessment_assessedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "assessedBy":
|
|
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._VendorRiskAssessment_assessedBy(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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) })
|
|
case "expiresAt":
|
|
out.Values[i] = ec._VendorRiskAssessment_expiresAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "dataSensitivity":
|
|
out.Values[i] = ec._VendorRiskAssessment_dataSensitivity(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "businessImpact":
|
|
out.Values[i] = ec._VendorRiskAssessment_businessImpact(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "notes":
|
|
out.Values[i] = ec._VendorRiskAssessment_notes(ctx, field, obj)
|
|
case "createdAt":
|
|
out.Values[i] = ec._VendorRiskAssessment_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._VendorRiskAssessment_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var vendorRiskAssessmentConnectionImplementors = []string{"VendorRiskAssessmentConnection"}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessmentConnection(ctx context.Context, sel ast.SelectionSet, obj *types.VendorRiskAssessmentConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorRiskAssessmentConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("VendorRiskAssessmentConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._VendorRiskAssessmentConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._VendorRiskAssessmentConnection_pageInfo(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var vendorRiskAssessmentEdgeImplementors = []string{"VendorRiskAssessmentEdge"}
|
|
|
|
func (ec *executionContext) _VendorRiskAssessmentEdge(ctx context.Context, sel ast.SelectionSet, obj *types.VendorRiskAssessmentEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorRiskAssessmentEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("VendorRiskAssessmentEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._VendorRiskAssessmentEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._VendorRiskAssessmentEdge_node(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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var viewerImplementors = []string{"Viewer"}
|
|
|
|
func (ec *executionContext) _Viewer(ctx context.Context, sel ast.SelectionSet, obj *types.Viewer) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, viewerImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Viewer")
|
|
case "id":
|
|
out.Values[i] = ec._Viewer_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "user":
|
|
out.Values[i] = ec._Viewer_user(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "organizations":
|
|
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._Viewer_organizations(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// 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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
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)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
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)
|
|
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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
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)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
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)
|
|
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)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
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)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
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)
|
|
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)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
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)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
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)
|
|
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)
|
|
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)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
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)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
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)
|
|
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)
|
|
case "subscriptionType":
|
|
out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
|
|
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(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
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)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
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)
|
|
case "description":
|
|
out.Values[i] = ec.___Type_description(ctx, field, obj)
|
|
case "specifiedByURL":
|
|
out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
|
|
case "fields":
|
|
out.Values[i] = ec.___Type_fields(ctx, field, obj)
|
|
case "interfaces":
|
|
out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
|
|
case "possibleTypes":
|
|
out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
|
|
case "enumValues":
|
|
out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
|
|
case "inputFields":
|
|
out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
|
|
case "ofType":
|
|
out.Values[i] = ec.___Type_ofType(ctx, field, obj)
|
|
case "isOneOf":
|
|
out.Values[i] = ec.___Type_isOneOf(ctx, field, obj)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.processDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
// endregion **************************** object.gotpl ****************************
|
|
|
|
// region ***************************** type.gotpl *****************************
|
|
|
|
func (ec *executionContext) unmarshalNAssignTaskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssignTaskInput(ctx context.Context, v any) (types.AssignTaskInput, error) {
|
|
res, err := ec.unmarshalInputAssignTaskInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAssignTaskPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssignTaskPayload(ctx context.Context, sel ast.SelectionSet, v types.AssignTaskPayload) graphql.Marshaler {
|
|
return ec._AssignTaskPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAssignTaskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssignTaskPayload(ctx context.Context, sel ast.SelectionSet, v *types.AssignTaskPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._AssignTaskPayload(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 {
|
|
res := graphql.MarshalBoolean(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNBusinessImpact2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐBusinessImpact(ctx context.Context, v any) (coredata.BusinessImpact, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNBusinessImpact2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐBusinessImpact[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNBusinessImpact2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐBusinessImpact(ctx context.Context, sel ast.SelectionSet, v coredata.BusinessImpact) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNBusinessImpact2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐBusinessImpact[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNBusinessImpact2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐBusinessImpact = map[string]coredata.BusinessImpact{
|
|
"LOW": coredata.BusinessImpactLow,
|
|
"MEDIUM": coredata.BusinessImpactMedium,
|
|
"HIGH": coredata.BusinessImpactHigh,
|
|
"CRITICAL": coredata.BusinessImpactCritical,
|
|
}
|
|
marshalNBusinessImpact2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐBusinessImpact = map[coredata.BusinessImpact]string{
|
|
coredata.BusinessImpactLow: "LOW",
|
|
coredata.BusinessImpactMedium: "MEDIUM",
|
|
coredata.BusinessImpactHigh: "HIGH",
|
|
coredata.BusinessImpactCritical: "CRITICAL",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNConfirmEmailInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConfirmEmailInput(ctx context.Context, v any) (types.ConfirmEmailInput, error) {
|
|
res, err := ec.unmarshalInputConfirmEmailInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNConfirmEmailPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConfirmEmailPayload(ctx context.Context, sel ast.SelectionSet, v types.ConfirmEmailPayload) graphql.Marshaler {
|
|
return ec._ConfirmEmailPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNConfirmEmailPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConfirmEmailPayload(ctx context.Context, sel ast.SelectionSet, v *types.ConfirmEmailPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._ConfirmEmailPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNConnector2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConnector(ctx context.Context, sel ast.SelectionSet, v *types.Connector) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Connector(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNConnectorConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConnectorConnection(ctx context.Context, sel ast.SelectionSet, v types.ConnectorConnection) graphql.Marshaler {
|
|
return ec._ConnectorConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNConnectorConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConnectorConnection(ctx context.Context, sel ast.SelectionSet, v *types.ConnectorConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._ConnectorConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNConnectorEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConnectorEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ConnectorEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNConnectorEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConnectorEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNConnectorEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConnectorEdge(ctx context.Context, sel ast.SelectionSet, v *types.ConnectorEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._ConnectorEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNConnectorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐConnectorOrderField(ctx context.Context, v any) (coredata.ConnectorOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNConnectorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐConnectorOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNConnectorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐConnectorOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.ConnectorOrderField) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNConnectorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐConnectorOrderField[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNConnectorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐConnectorOrderField = map[string]coredata.ConnectorOrderField{
|
|
"CREATED_AT": coredata.ConnectorOrderFieldCreatedAt,
|
|
"NAME": coredata.ConnectorOrderFieldName,
|
|
}
|
|
marshalNConnectorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐConnectorOrderField = map[coredata.ConnectorOrderField]string{
|
|
coredata.ConnectorOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.ConnectorOrderFieldName: "NAME",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNControl2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControl(ctx context.Context, sel ast.SelectionSet, v *types.Control) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Control(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNControlConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection(ctx context.Context, sel ast.SelectionSet, v types.ControlConnection) graphql.Marshaler {
|
|
return ec._ControlConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNControlConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection(ctx context.Context, sel ast.SelectionSet, v *types.ControlConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._ControlConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNControlEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ControlEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNControlEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNControlEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdge(ctx context.Context, sel ast.SelectionSet, v *types.ControlEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._ControlEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNControlOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlOrderField(ctx context.Context, v any) (coredata.ControlOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNControlOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNControlOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.ControlOrderField) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNControlOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlOrderField[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNControlOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlOrderField = map[string]coredata.ControlOrderField{
|
|
"CREATED_AT": coredata.ControlOrderFieldCreatedAt,
|
|
}
|
|
marshalNControlOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlOrderField = map[coredata.ControlOrderField]string{
|
|
coredata.ControlOrderFieldCreatedAt: "CREATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNCreateControlMesureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMesureMappingInput(ctx context.Context, v any) (types.CreateControlMesureMappingInput, error) {
|
|
res, err := ec.unmarshalInputCreateControlMesureMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlMesureMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMesureMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateControlMesureMappingPayload) graphql.Marshaler {
|
|
return ec._CreateControlMesureMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlMesureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMesureMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateControlMesureMappingPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateControlMesureMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateControlPolicyMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlPolicyMappingInput(ctx context.Context, v any) (types.CreateControlPolicyMappingInput, error) {
|
|
res, err := ec.unmarshalInputCreateControlPolicyMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlPolicyMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlPolicyMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateControlPolicyMappingPayload) graphql.Marshaler {
|
|
return ec._CreateControlPolicyMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlPolicyMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlPolicyMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateControlPolicyMappingPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateControlPolicyMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateEvidenceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateEvidenceInput(ctx context.Context, v any) (types.CreateEvidenceInput, error) {
|
|
res, err := ec.unmarshalInputCreateEvidenceInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateEvidencePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateEvidencePayload(ctx context.Context, sel ast.SelectionSet, v types.CreateEvidencePayload) graphql.Marshaler {
|
|
return ec._CreateEvidencePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateEvidencePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateEvidencePayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateEvidencePayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateEvidencePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateFrameworkInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateFrameworkInput(ctx context.Context, v any) (types.CreateFrameworkInput, error) {
|
|
res, err := ec.unmarshalInputCreateFrameworkInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateFrameworkPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateFrameworkPayload) graphql.Marshaler {
|
|
return ec._CreateFrameworkPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateFrameworkPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateFrameworkPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateFrameworkPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateMesureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMesureInput(ctx context.Context, v any) (types.CreateMesureInput, error) {
|
|
res, err := ec.unmarshalInputCreateMesureInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateMesurePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMesurePayload(ctx context.Context, sel ast.SelectionSet, v types.CreateMesurePayload) graphql.Marshaler {
|
|
return ec._CreateMesurePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateMesurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMesurePayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateMesurePayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateMesurePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateOrganizationInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateOrganizationInput(ctx context.Context, v any) (types.CreateOrganizationInput, error) {
|
|
res, err := ec.unmarshalInputCreateOrganizationInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateOrganizationPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateOrganizationPayload) graphql.Marshaler {
|
|
return ec._CreateOrganizationPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateOrganizationPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateOrganizationPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateOrganizationPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreatePeopleInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreatePeopleInput(ctx context.Context, v any) (types.CreatePeopleInput, error) {
|
|
res, err := ec.unmarshalInputCreatePeopleInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreatePeoplePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreatePeoplePayload(ctx context.Context, sel ast.SelectionSet, v types.CreatePeoplePayload) graphql.Marshaler {
|
|
return ec._CreatePeoplePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreatePeoplePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreatePeoplePayload(ctx context.Context, sel ast.SelectionSet, v *types.CreatePeoplePayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreatePeoplePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreatePolicyInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreatePolicyInput(ctx context.Context, v any) (types.CreatePolicyInput, error) {
|
|
res, err := ec.unmarshalInputCreatePolicyInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreatePolicyPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreatePolicyPayload(ctx context.Context, sel ast.SelectionSet, v types.CreatePolicyPayload) graphql.Marshaler {
|
|
return ec._CreatePolicyPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreatePolicyPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreatePolicyPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreatePolicyPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreatePolicyPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateRiskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskInput(ctx context.Context, v any) (types.CreateRiskInput, error) {
|
|
res, err := ec.unmarshalInputCreateRiskInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateRiskMesureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMesureMappingInput(ctx context.Context, v any) (types.CreateRiskMesureMappingInput, error) {
|
|
res, err := ec.unmarshalInputCreateRiskMesureMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateRiskMesureMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMesureMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateRiskMesureMappingPayload) graphql.Marshaler {
|
|
return ec._CreateRiskMesureMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateRiskMesureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMesureMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateRiskMesureMappingPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateRiskMesureMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateRiskPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateRiskPayload) graphql.Marshaler {
|
|
return ec._CreateRiskPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateRiskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateRiskPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateRiskPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateRiskPolicyMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskPolicyMappingInput(ctx context.Context, v any) (types.CreateRiskPolicyMappingInput, error) {
|
|
res, err := ec.unmarshalInputCreateRiskPolicyMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateRiskPolicyMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskPolicyMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateRiskPolicyMappingPayload) graphql.Marshaler {
|
|
return ec._CreateRiskPolicyMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateRiskPolicyMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskPolicyMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateRiskPolicyMappingPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateRiskPolicyMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateTaskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTaskInput(ctx context.Context, v any) (types.CreateTaskInput, error) {
|
|
res, err := ec.unmarshalInputCreateTaskInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateTaskPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTaskPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateTaskPayload) graphql.Marshaler {
|
|
return ec._CreateTaskPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateTaskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTaskPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateTaskPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateTaskPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateVendorInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorInput(ctx context.Context, v any) (types.CreateVendorInput, error) {
|
|
res, err := ec.unmarshalInputCreateVendorInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateVendorPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateVendorPayload) graphql.Marshaler {
|
|
return ec._CreateVendorPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateVendorPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateVendorPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateVendorPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateVendorRiskAssessmentInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorRiskAssessmentInput(ctx context.Context, v any) (types.CreateVendorRiskAssessmentInput, error) {
|
|
res, err := ec.unmarshalInputCreateVendorRiskAssessmentInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateVendorRiskAssessmentPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorRiskAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateVendorRiskAssessmentPayload) graphql.Marshaler {
|
|
return ec._CreateVendorRiskAssessmentPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateVendorRiskAssessmentPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorRiskAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateVendorRiskAssessmentPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateVendorRiskAssessmentPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, v any) (page.CursorKey, error) {
|
|
res, err := types.UnmarshalCursorKeyScalar(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, sel ast.SelectionSet, v page.CursorKey) graphql.Marshaler {
|
|
res := types.MarshalCursorKeyScalar(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDataSensitivity2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataSensitivity(ctx context.Context, v any) (coredata.DataSensitivity, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNDataSensitivity2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataSensitivity[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDataSensitivity2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataSensitivity(ctx context.Context, sel ast.SelectionSet, v coredata.DataSensitivity) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNDataSensitivity2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataSensitivity[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNDataSensitivity2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataSensitivity = map[string]coredata.DataSensitivity{
|
|
"NONE": coredata.DataSensitivityNone,
|
|
"LOW": coredata.DataSensitivityLow,
|
|
"MEDIUM": coredata.DataSensitivityMedium,
|
|
"HIGH": coredata.DataSensitivityHigh,
|
|
"CRITICAL": coredata.DataSensitivityCritical,
|
|
}
|
|
marshalNDataSensitivity2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataSensitivity = map[coredata.DataSensitivity]string{
|
|
coredata.DataSensitivityNone: "NONE",
|
|
coredata.DataSensitivityLow: "LOW",
|
|
coredata.DataSensitivityMedium: "MEDIUM",
|
|
coredata.DataSensitivityHigh: "HIGH",
|
|
coredata.DataSensitivityCritical: "CRITICAL",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNDatetime2timeᚐTime(ctx context.Context, v any) (time.Time, error) {
|
|
res, err := graphql.UnmarshalTime(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDatetime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler {
|
|
res := graphql.MarshalTime(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteControlMesureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMesureMappingInput(ctx context.Context, v any) (types.DeleteControlMesureMappingInput, error) {
|
|
res, err := ec.unmarshalInputDeleteControlMesureMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlMesureMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMesureMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteControlMesureMappingPayload) graphql.Marshaler {
|
|
return ec._DeleteControlMesureMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlMesureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMesureMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteControlMesureMappingPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteControlMesureMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteControlPolicyMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlPolicyMappingInput(ctx context.Context, v any) (types.DeleteControlPolicyMappingInput, error) {
|
|
res, err := ec.unmarshalInputDeleteControlPolicyMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlPolicyMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlPolicyMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteControlPolicyMappingPayload) graphql.Marshaler {
|
|
return ec._DeleteControlPolicyMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlPolicyMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlPolicyMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteControlPolicyMappingPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteControlPolicyMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteEvidenceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteEvidenceInput(ctx context.Context, v any) (types.DeleteEvidenceInput, error) {
|
|
res, err := ec.unmarshalInputDeleteEvidenceInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteEvidencePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteEvidencePayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteEvidencePayload) graphql.Marshaler {
|
|
return ec._DeleteEvidencePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteEvidencePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteEvidencePayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteEvidencePayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteEvidencePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteFrameworkInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteFrameworkInput(ctx context.Context, v any) (types.DeleteFrameworkInput, error) {
|
|
res, err := ec.unmarshalInputDeleteFrameworkInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteFrameworkPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteFrameworkPayload) graphql.Marshaler {
|
|
return ec._DeleteFrameworkPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteFrameworkPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteFrameworkPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteFrameworkPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteOrganizationInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteOrganizationInput(ctx context.Context, v any) (types.DeleteOrganizationInput, error) {
|
|
res, err := ec.unmarshalInputDeleteOrganizationInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteOrganizationPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteOrganizationPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteOrganizationPayload) graphql.Marshaler {
|
|
return ec._DeleteOrganizationPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteOrganizationPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteOrganizationPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteOrganizationPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteOrganizationPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeletePeopleInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeletePeopleInput(ctx context.Context, v any) (types.DeletePeopleInput, error) {
|
|
res, err := ec.unmarshalInputDeletePeopleInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeletePeoplePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeletePeoplePayload(ctx context.Context, sel ast.SelectionSet, v types.DeletePeoplePayload) graphql.Marshaler {
|
|
return ec._DeletePeoplePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeletePeoplePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeletePeoplePayload(ctx context.Context, sel ast.SelectionSet, v *types.DeletePeoplePayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._DeletePeoplePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeletePolicyInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeletePolicyInput(ctx context.Context, v any) (types.DeletePolicyInput, error) {
|
|
res, err := ec.unmarshalInputDeletePolicyInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeletePolicyPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeletePolicyPayload(ctx context.Context, sel ast.SelectionSet, v types.DeletePolicyPayload) graphql.Marshaler {
|
|
return ec._DeletePolicyPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeletePolicyPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeletePolicyPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeletePolicyPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._DeletePolicyPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteRiskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskInput(ctx context.Context, v any) (types.DeleteRiskInput, error) {
|
|
res, err := ec.unmarshalInputDeleteRiskInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteRiskMesureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMesureMappingInput(ctx context.Context, v any) (types.DeleteRiskMesureMappingInput, error) {
|
|
res, err := ec.unmarshalInputDeleteRiskMesureMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteRiskMesureMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMesureMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteRiskMesureMappingPayload) graphql.Marshaler {
|
|
return ec._DeleteRiskMesureMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteRiskMesureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMesureMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteRiskMesureMappingPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteRiskMesureMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteRiskPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteRiskPayload) graphql.Marshaler {
|
|
return ec._DeleteRiskPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteRiskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteRiskPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteRiskPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteRiskPolicyMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskPolicyMappingInput(ctx context.Context, v any) (types.DeleteRiskPolicyMappingInput, error) {
|
|
res, err := ec.unmarshalInputDeleteRiskPolicyMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteRiskPolicyMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskPolicyMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteRiskPolicyMappingPayload) graphql.Marshaler {
|
|
return ec._DeleteRiskPolicyMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteRiskPolicyMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskPolicyMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteRiskPolicyMappingPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteRiskPolicyMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteTaskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTaskInput(ctx context.Context, v any) (types.DeleteTaskInput, error) {
|
|
res, err := ec.unmarshalInputDeleteTaskInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteTaskPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTaskPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteTaskPayload) graphql.Marshaler {
|
|
return ec._DeleteTaskPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteTaskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTaskPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteTaskPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteTaskPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteVendorComplianceReportInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorComplianceReportInput(ctx context.Context, v any) (types.DeleteVendorComplianceReportInput, error) {
|
|
res, err := ec.unmarshalInputDeleteVendorComplianceReportInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteVendorComplianceReportPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorComplianceReportPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteVendorComplianceReportPayload) graphql.Marshaler {
|
|
return ec._DeleteVendorComplianceReportPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteVendorComplianceReportPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorComplianceReportPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteVendorComplianceReportPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteVendorComplianceReportPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteVendorInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorInput(ctx context.Context, v any) (types.DeleteVendorInput, error) {
|
|
res, err := ec.unmarshalInputDeleteVendorInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteVendorPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteVendorPayload) graphql.Marshaler {
|
|
return ec._DeleteVendorPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteVendorPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteVendorPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteVendorPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNEvidence2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidence(ctx context.Context, sel ast.SelectionSet, v *types.Evidence) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Evidence(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNEvidenceConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceConnection(ctx context.Context, sel ast.SelectionSet, v types.EvidenceConnection) graphql.Marshaler {
|
|
return ec._EvidenceConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNEvidenceConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceConnection(ctx context.Context, sel ast.SelectionSet, v *types.EvidenceConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._EvidenceConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNEvidenceEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.EvidenceEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNEvidenceEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNEvidenceEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceEdge(ctx context.Context, sel ast.SelectionSet, v *types.EvidenceEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._EvidenceEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNEvidenceOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceOrderField(ctx context.Context, v any) (coredata.EvidenceOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := coredata.EvidenceOrderField(tmp)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNEvidenceOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.EvidenceOrderField) graphql.Marshaler {
|
|
res := graphql.MarshalString(string(v))
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNEvidenceState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceState(ctx context.Context, v any) (coredata.EvidenceState, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNEvidenceState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceState[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNEvidenceState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceState(ctx context.Context, sel ast.SelectionSet, v coredata.EvidenceState) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNEvidenceState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceState[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNEvidenceState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceState = map[string]coredata.EvidenceState{
|
|
"FULFILLED": coredata.EvidenceStateFulfilled,
|
|
"REQUESTED": coredata.EvidenceStateRequested,
|
|
}
|
|
marshalNEvidenceState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceState = map[coredata.EvidenceState]string{
|
|
coredata.EvidenceStateFulfilled: "FULFILLED",
|
|
coredata.EvidenceStateRequested: "REQUESTED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNEvidenceType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceType(ctx context.Context, v any) (coredata.EvidenceType, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNEvidenceType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceType[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNEvidenceType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceType(ctx context.Context, sel ast.SelectionSet, v coredata.EvidenceType) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNEvidenceType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceType[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNEvidenceType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceType = map[string]coredata.EvidenceType{
|
|
"FILE": coredata.EvidenceTypeFile,
|
|
"LINK": coredata.EvidenceTypeLink,
|
|
}
|
|
marshalNEvidenceType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐEvidenceType = map[coredata.EvidenceType]string{
|
|
coredata.EvidenceTypeFile: "FILE",
|
|
coredata.EvidenceTypeLink: "LINK",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNFramework2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFramework(ctx context.Context, sel ast.SelectionSet, v *types.Framework) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Framework(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNFrameworkConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkConnection(ctx context.Context, sel ast.SelectionSet, v types.FrameworkConnection) graphql.Marshaler {
|
|
return ec._FrameworkConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNFrameworkConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkConnection(ctx context.Context, sel ast.SelectionSet, v *types.FrameworkConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._FrameworkConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNFrameworkEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.FrameworkEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNFrameworkEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNFrameworkEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkEdge(ctx context.Context, sel ast.SelectionSet, v *types.FrameworkEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._FrameworkEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNFrameworkOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField(ctx context.Context, v any) (coredata.FrameworkOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNFrameworkOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNFrameworkOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.FrameworkOrderField) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNFrameworkOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNFrameworkOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField = map[string]coredata.FrameworkOrderField{
|
|
"CREATED_AT": coredata.FrameworkOrderFieldCreatedAt,
|
|
}
|
|
marshalNFrameworkOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField = map[coredata.FrameworkOrderField]string{
|
|
coredata.FrameworkOrderFieldCreatedAt: "CREATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNFulfillEvidenceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFulfillEvidenceInput(ctx context.Context, v any) (types.FulfillEvidenceInput, error) {
|
|
res, err := ec.unmarshalInputFulfillEvidenceInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNFulfillEvidencePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFulfillEvidencePayload(ctx context.Context, sel ast.SelectionSet, v types.FulfillEvidencePayload) graphql.Marshaler {
|
|
return ec._FulfillEvidencePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNFulfillEvidencePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFulfillEvidencePayload(ctx context.Context, sel ast.SelectionSet, v *types.FulfillEvidencePayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._FulfillEvidencePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, v any) (gid.GID, error) {
|
|
res, err := types.UnmarshalGIDScalar(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, sel ast.SelectionSet, v gid.GID) graphql.Marshaler {
|
|
res := types.MarshalGIDScalar(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNImportFrameworkInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportFrameworkInput(ctx context.Context, v any) (types.ImportFrameworkInput, error) {
|
|
res, err := ec.unmarshalInputImportFrameworkInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNImportFrameworkPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v types.ImportFrameworkPayload) graphql.Marshaler {
|
|
return ec._ImportFrameworkPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNImportFrameworkPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v *types.ImportFrameworkPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._ImportFrameworkPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNImportMesureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMesureInput(ctx context.Context, v any) (types.ImportMesureInput, error) {
|
|
res, err := ec.unmarshalInputImportMesureInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNImportMesurePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMesurePayload(ctx context.Context, sel ast.SelectionSet, v types.ImportMesurePayload) graphql.Marshaler {
|
|
return ec._ImportMesurePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNImportMesurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMesurePayload(ctx context.Context, sel ast.SelectionSet, v *types.ImportMesurePayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._ImportMesurePayload(ctx, sel, v)
|
|
}
|
|
|
|
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 {
|
|
res := graphql.MarshalInt(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNInviteUserInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐInviteUserInput(ctx context.Context, v any) (types.InviteUserInput, error) {
|
|
res, err := ec.unmarshalInputInviteUserInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNInviteUserPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐInviteUserPayload(ctx context.Context, sel ast.SelectionSet, v types.InviteUserPayload) graphql.Marshaler {
|
|
return ec._InviteUserPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNInviteUserPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐInviteUserPayload(ctx context.Context, sel ast.SelectionSet, v *types.InviteUserPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._InviteUserPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMesure2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesure(ctx context.Context, sel ast.SelectionSet, v *types.Mesure) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Mesure(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMesureConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureConnection(ctx context.Context, sel ast.SelectionSet, v types.MesureConnection) graphql.Marshaler {
|
|
return ec._MesureConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMesureConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureConnection(ctx context.Context, sel ast.SelectionSet, v *types.MesureConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._MesureConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMesureEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.MesureEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNMesureEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMesureEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureEdge(ctx context.Context, sel ast.SelectionSet, v *types.MesureEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._MesureEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNMesureImportance2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance(ctx context.Context, v any) (coredata.MesureImportance, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNMesureImportance2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMesureImportance2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance(ctx context.Context, sel ast.SelectionSet, v coredata.MesureImportance) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNMesureImportance2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNMesureImportance2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance = map[string]coredata.MesureImportance{
|
|
"MANDATORY": coredata.MesureImportanceMandatory,
|
|
"PREFERRED": coredata.MesureImportancePreferred,
|
|
"ADVANCED": coredata.MesureImportanceAdvanced,
|
|
}
|
|
marshalNMesureImportance2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance = map[coredata.MesureImportance]string{
|
|
coredata.MesureImportanceMandatory: "MANDATORY",
|
|
coredata.MesureImportancePreferred: "PREFERRED",
|
|
coredata.MesureImportanceAdvanced: "ADVANCED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNMesureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureOrderField(ctx context.Context, v any) (coredata.MesureOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNMesureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMesureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.MesureOrderField) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNMesureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureOrderField[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNMesureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureOrderField = map[string]coredata.MesureOrderField{
|
|
"CREATED_AT": coredata.MesureOrderFieldCreatedAt,
|
|
}
|
|
marshalNMesureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureOrderField = map[coredata.MesureOrderField]string{
|
|
coredata.MesureOrderFieldCreatedAt: "CREATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNMesureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState(ctx context.Context, v any) (coredata.MesureState, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNMesureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMesureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState(ctx context.Context, sel ast.SelectionSet, v coredata.MesureState) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNMesureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNMesureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState = map[string]coredata.MesureState{
|
|
"NOT_STARTED": coredata.MesureStateNotStarted,
|
|
"IN_PROGRESS": coredata.MesureStateInProgress,
|
|
"NOT_APPLICABLE": coredata.MesureStateNotApplicable,
|
|
"IMPLEMENTED": coredata.MesureStateImplemented,
|
|
}
|
|
marshalNMesureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState = map[coredata.MesureState]string{
|
|
coredata.MesureStateNotStarted: "NOT_STARTED",
|
|
coredata.MesureStateInProgress: "IN_PROGRESS",
|
|
coredata.MesureStateNotApplicable: "NOT_APPLICABLE",
|
|
coredata.MesureStateImplemented: "IMPLEMENTED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNNode2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNode(ctx context.Context, sel ast.SelectionSet, v types.Node) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Node(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx context.Context, v any) (page.OrderDirection, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection(ctx context.Context, sel ast.SelectionSet, v page.OrderDirection) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection = map[string]page.OrderDirection{
|
|
"ASC": page.OrderDirectionAsc,
|
|
"DESC": page.OrderDirectionDesc,
|
|
}
|
|
marshalNOrderDirection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐOrderDirection = map[page.OrderDirection]string{
|
|
page.OrderDirectionAsc: "ASC",
|
|
page.OrderDirectionDesc: "DESC",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNOrganization2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *types.Organization) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Organization(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNOrganizationConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationConnection(ctx context.Context, sel ast.SelectionSet, v types.OrganizationConnection) graphql.Marshaler {
|
|
return ec._OrganizationConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNOrganizationConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationConnection(ctx context.Context, sel ast.SelectionSet, v *types.OrganizationConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._OrganizationConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNOrganizationEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.OrganizationEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNOrganizationEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNOrganizationEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationEdge(ctx context.Context, sel ast.SelectionSet, v *types.OrganizationEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._OrganizationEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNOrganizationOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationOrderField(ctx context.Context, v any) (types.OrganizationOrderField, error) {
|
|
var res types.OrganizationOrderField
|
|
err := res.UnmarshalGQL(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNOrganizationOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationOrderField(ctx context.Context, sel ast.SelectionSet, v types.OrganizationOrderField) graphql.Marshaler {
|
|
return v
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPageInfo2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v *types.PageInfo) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._PageInfo(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPeople2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeople(ctx context.Context, sel ast.SelectionSet, v types.People) graphql.Marshaler {
|
|
return ec._People(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPeople2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeople(ctx context.Context, sel ast.SelectionSet, v *types.People) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._People(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPeopleConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeopleConnection(ctx context.Context, sel ast.SelectionSet, v types.PeopleConnection) graphql.Marshaler {
|
|
return ec._PeopleConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPeopleConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeopleConnection(ctx context.Context, sel ast.SelectionSet, v *types.PeopleConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._PeopleConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPeopleEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeopleEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.PeopleEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNPeopleEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeopleEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPeopleEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeopleEdge(ctx context.Context, sel ast.SelectionSet, v *types.PeopleEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._PeopleEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNPeopleKind2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind(ctx context.Context, v any) (coredata.PeopleKind, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNPeopleKind2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPeopleKind2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind(ctx context.Context, sel ast.SelectionSet, v coredata.PeopleKind) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNPeopleKind2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNPeopleKind2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind = map[string]coredata.PeopleKind{
|
|
"EMPLOYEE": coredata.PeopleKindEmployee,
|
|
"CONTRACTOR": coredata.PeopleKindContractor,
|
|
"SERVICE_ACCOUNT": coredata.PeopleKindServiceAccount,
|
|
}
|
|
marshalNPeopleKind2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind = map[coredata.PeopleKind]string{
|
|
coredata.PeopleKindEmployee: "EMPLOYEE",
|
|
coredata.PeopleKindContractor: "CONTRACTOR",
|
|
coredata.PeopleKindServiceAccount: "SERVICE_ACCOUNT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNPeopleOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleOrderField(ctx context.Context, v any) (coredata.PeopleOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNPeopleOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPeopleOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.PeopleOrderField) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNPeopleOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleOrderField[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNPeopleOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleOrderField = map[string]coredata.PeopleOrderField{
|
|
"FULL_NAME": coredata.PeopleOrderFieldFullName,
|
|
"CREATED_AT": coredata.PeopleOrderFieldCreatedAt,
|
|
}
|
|
marshalNPeopleOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleOrderField = map[coredata.PeopleOrderField]string{
|
|
coredata.PeopleOrderFieldFullName: "FULL_NAME",
|
|
coredata.PeopleOrderFieldCreatedAt: "CREATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNPolicy2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicy(ctx context.Context, sel ast.SelectionSet, v *types.Policy) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Policy(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPolicyConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyConnection(ctx context.Context, sel ast.SelectionSet, v types.PolicyConnection) graphql.Marshaler {
|
|
return ec._PolicyConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPolicyConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyConnection(ctx context.Context, sel ast.SelectionSet, v *types.PolicyConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._PolicyConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPolicyEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.PolicyEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNPolicyEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPolicyEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyEdge(ctx context.Context, sel ast.SelectionSet, v *types.PolicyEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._PolicyEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNPolicyOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyOrderField(ctx context.Context, v any) (coredata.PolicyOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := coredata.PolicyOrderField(tmp)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPolicyOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.PolicyOrderField) graphql.Marshaler {
|
|
res := graphql.MarshalString(string(v))
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNPolicyStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus(ctx context.Context, v any) (coredata.PolicyStatus, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNPolicyStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPolicyStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus(ctx context.Context, sel ast.SelectionSet, v coredata.PolicyStatus) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNPolicyStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNPolicyStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus = map[string]coredata.PolicyStatus{
|
|
"DRAFT": coredata.PolicyStatusDraft,
|
|
"ACTIVE": coredata.PolicyStatusActive,
|
|
}
|
|
marshalNPolicyStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus = map[coredata.PolicyStatus]string{
|
|
coredata.PolicyStatusDraft: "DRAFT",
|
|
coredata.PolicyStatusActive: "ACTIVE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNRemoveUserInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRemoveUserInput(ctx context.Context, v any) (types.RemoveUserInput, error) {
|
|
res, err := ec.unmarshalInputRemoveUserInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRemoveUserPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRemoveUserPayload(ctx context.Context, sel ast.SelectionSet, v types.RemoveUserPayload) graphql.Marshaler {
|
|
return ec._RemoveUserPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRemoveUserPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRemoveUserPayload(ctx context.Context, sel ast.SelectionSet, v *types.RemoveUserPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._RemoveUserPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNRequestEvidenceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestEvidenceInput(ctx context.Context, v any) (types.RequestEvidenceInput, error) {
|
|
res, err := ec.unmarshalInputRequestEvidenceInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRequestEvidencePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestEvidencePayload(ctx context.Context, sel ast.SelectionSet, v types.RequestEvidencePayload) graphql.Marshaler {
|
|
return ec._RequestEvidencePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRequestEvidencePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestEvidencePayload(ctx context.Context, sel ast.SelectionSet, v *types.RequestEvidencePayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._RequestEvidencePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRisk2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRisk(ctx context.Context, sel ast.SelectionSet, v *types.Risk) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Risk(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRiskConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskConnection(ctx context.Context, sel ast.SelectionSet, v types.RiskConnection) graphql.Marshaler {
|
|
return ec._RiskConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRiskConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskConnection(ctx context.Context, sel ast.SelectionSet, v *types.RiskConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._RiskConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRiskEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.RiskEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNRiskEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRiskEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskEdge(ctx context.Context, sel ast.SelectionSet, v *types.RiskEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._RiskEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNRiskOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskOrderField(ctx context.Context, v any) (coredata.RiskOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNRiskOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRiskOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.RiskOrderField) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNRiskOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskOrderField[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNRiskOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskOrderField = map[string]coredata.RiskOrderField{
|
|
"CREATED_AT": coredata.RiskOrderFieldCreatedAt,
|
|
}
|
|
marshalNRiskOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskOrderField = map[coredata.RiskOrderField]string{
|
|
coredata.RiskOrderFieldCreatedAt: "CREATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNRiskTreatment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx context.Context, v any) (coredata.RiskTreatment, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNRiskTreatment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRiskTreatment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx context.Context, sel ast.SelectionSet, v coredata.RiskTreatment) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNRiskTreatment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNRiskTreatment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment = map[string]coredata.RiskTreatment{
|
|
"MITIGATED": coredata.RiskTreatmentMitigated,
|
|
"ACCEPTED": coredata.RiskTreatmentAccepted,
|
|
"AVOIDED": coredata.RiskTreatmentAvoided,
|
|
"TRANSFERRED": coredata.RiskTreatmentTransferred,
|
|
}
|
|
marshalNRiskTreatment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment = map[coredata.RiskTreatment]string{
|
|
coredata.RiskTreatmentMitigated: "MITIGATED",
|
|
coredata.RiskTreatmentAccepted: "ACCEPTED",
|
|
coredata.RiskTreatmentAvoided: "AVOIDED",
|
|
coredata.RiskTreatmentTransferred: "TRANSFERRED",
|
|
}
|
|
)
|
|
|
|
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 {
|
|
res := graphql.MarshalString(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
|
|
var vSlice []any
|
|
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.unmarshalNString2string(ctx, vSlice[i])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
return res, nil
|
|
}
|
|
|
|
func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
for i := range v {
|
|
ret[i] = ec.marshalNString2string(ctx, sel, v[i])
|
|
}
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNTask2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTask(ctx context.Context, sel ast.SelectionSet, v *types.Task) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Task(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNTaskConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskConnection(ctx context.Context, sel ast.SelectionSet, v types.TaskConnection) graphql.Marshaler {
|
|
return ec._TaskConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNTaskConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskConnection(ctx context.Context, sel ast.SelectionSet, v *types.TaskConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._TaskConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNTaskEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.TaskEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNTaskEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNTaskEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskEdge(ctx context.Context, sel ast.SelectionSet, v *types.TaskEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._TaskEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNTaskOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskOrderField(ctx context.Context, v any) (coredata.TaskOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := coredata.TaskOrderField(tmp)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNTaskOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.TaskOrderField) graphql.Marshaler {
|
|
res := graphql.MarshalString(string(v))
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNTaskState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState(ctx context.Context, v any) (coredata.TaskState, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNTaskState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNTaskState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState(ctx context.Context, sel ast.SelectionSet, v coredata.TaskState) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNTaskState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNTaskState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState = map[string]coredata.TaskState{
|
|
"TODO": coredata.TaskStateTodo,
|
|
"DONE": coredata.TaskStateDone,
|
|
}
|
|
marshalNTaskState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState = map[coredata.TaskState]string{
|
|
coredata.TaskStateTodo: "TODO",
|
|
coredata.TaskStateDone: "DONE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNUnassignTaskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUnassignTaskInput(ctx context.Context, v any) (types.UnassignTaskInput, error) {
|
|
res, err := ec.unmarshalInputUnassignTaskInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUnassignTaskPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUnassignTaskPayload(ctx context.Context, sel ast.SelectionSet, v types.UnassignTaskPayload) graphql.Marshaler {
|
|
return ec._UnassignTaskPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUnassignTaskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUnassignTaskPayload(ctx context.Context, sel ast.SelectionSet, v *types.UnassignTaskPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UnassignTaskPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateFrameworkInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateFrameworkInput(ctx context.Context, v any) (types.UpdateFrameworkInput, error) {
|
|
res, err := ec.unmarshalInputUpdateFrameworkInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateFrameworkPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateFrameworkPayload) graphql.Marshaler {
|
|
return ec._UpdateFrameworkPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateFrameworkPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateFrameworkPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UpdateFrameworkPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateMesureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMesureInput(ctx context.Context, v any) (types.UpdateMesureInput, error) {
|
|
res, err := ec.unmarshalInputUpdateMesureInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateMesurePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMesurePayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateMesurePayload) graphql.Marshaler {
|
|
return ec._UpdateMesurePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateMesurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMesurePayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateMesurePayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UpdateMesurePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateOrganizationInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateOrganizationInput(ctx context.Context, v any) (types.UpdateOrganizationInput, error) {
|
|
res, err := ec.unmarshalInputUpdateOrganizationInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateOrganizationPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateOrganizationPayload) graphql.Marshaler {
|
|
return ec._UpdateOrganizationPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateOrganizationPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateOrganizationPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UpdateOrganizationPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdatePeopleInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdatePeopleInput(ctx context.Context, v any) (types.UpdatePeopleInput, error) {
|
|
res, err := ec.unmarshalInputUpdatePeopleInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdatePeoplePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdatePeoplePayload(ctx context.Context, sel ast.SelectionSet, v types.UpdatePeoplePayload) graphql.Marshaler {
|
|
return ec._UpdatePeoplePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdatePeoplePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdatePeoplePayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdatePeoplePayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UpdatePeoplePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdatePolicyInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdatePolicyInput(ctx context.Context, v any) (types.UpdatePolicyInput, error) {
|
|
res, err := ec.unmarshalInputUpdatePolicyInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdatePolicyPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdatePolicyPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdatePolicyPayload) graphql.Marshaler {
|
|
return ec._UpdatePolicyPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdatePolicyPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdatePolicyPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdatePolicyPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UpdatePolicyPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateRiskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRiskInput(ctx context.Context, v any) (types.UpdateRiskInput, error) {
|
|
res, err := ec.unmarshalInputUpdateRiskInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateRiskPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRiskPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateRiskPayload) graphql.Marshaler {
|
|
return ec._UpdateRiskPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateRiskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRiskPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateRiskPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UpdateRiskPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateTaskInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTaskInput(ctx context.Context, v any) (types.UpdateTaskInput, error) {
|
|
res, err := ec.unmarshalInputUpdateTaskInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateTaskPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTaskPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateTaskPayload) graphql.Marshaler {
|
|
return ec._UpdateTaskPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateTaskPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTaskPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateTaskPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UpdateTaskPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateVendorInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorInput(ctx context.Context, v any) (types.UpdateVendorInput, error) {
|
|
res, err := ec.unmarshalInputUpdateVendorInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateVendorPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateVendorPayload) graphql.Marshaler {
|
|
return ec._UpdateVendorPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateVendorPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateVendorPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UpdateVendorPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v any) (graphql.Upload, error) {
|
|
res, err := graphql.UnmarshalUpload(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, sel ast.SelectionSet, v graphql.Upload) graphql.Marshaler {
|
|
res := graphql.MarshalUpload(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUploadVendorComplianceReportInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorComplianceReportInput(ctx context.Context, v any) (types.UploadVendorComplianceReportInput, error) {
|
|
res, err := ec.unmarshalInputUploadVendorComplianceReportInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUploadVendorComplianceReportPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorComplianceReportPayload(ctx context.Context, sel ast.SelectionSet, v types.UploadVendorComplianceReportPayload) graphql.Marshaler {
|
|
return ec._UploadVendorComplianceReportPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUploadVendorComplianceReportPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorComplianceReportPayload(ctx context.Context, sel ast.SelectionSet, v *types.UploadVendorComplianceReportPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UploadVendorComplianceReportPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUser2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUser(ctx context.Context, sel ast.SelectionSet, v *types.User) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._User(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUserConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUserConnection(ctx context.Context, sel ast.SelectionSet, v types.UserConnection) graphql.Marshaler {
|
|
return ec._UserConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUserConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUserConnection(ctx context.Context, sel ast.SelectionSet, v *types.UserConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UserConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUserEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUserEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.UserEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNUserEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUserEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUserEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUserEdge(ctx context.Context, sel ast.SelectionSet, v *types.UserEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UserEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUserOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐUserOrderField(ctx context.Context, v any) (coredata.UserOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNUserOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐUserOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUserOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐUserOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.UserOrderField) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNUserOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐUserOrderField[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNUserOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐUserOrderField = map[string]coredata.UserOrderField{
|
|
"CREATED_AT": coredata.UserOrderFieldCreatedAt,
|
|
}
|
|
marshalNUserOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐUserOrderField = map[coredata.UserOrderField]string{
|
|
coredata.UserOrderFieldCreatedAt: "CREATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNVendor2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor(ctx context.Context, sel ast.SelectionSet, v types.Vendor) graphql.Marshaler {
|
|
return ec._Vendor(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendor2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor(ctx context.Context, sel ast.SelectionSet, v *types.Vendor) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Vendor(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorComplianceReport2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReport(ctx context.Context, sel ast.SelectionSet, v *types.VendorComplianceReport) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorComplianceReport(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorComplianceReportConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportConnection(ctx context.Context, sel ast.SelectionSet, v types.VendorComplianceReportConnection) graphql.Marshaler {
|
|
return ec._VendorComplianceReportConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorComplianceReportConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportConnection(ctx context.Context, sel ast.SelectionSet, v *types.VendorComplianceReportConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorComplianceReportConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorComplianceReportEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.VendorComplianceReportEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNVendorComplianceReportEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorComplianceReportEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportEdge(ctx context.Context, sel ast.SelectionSet, v *types.VendorComplianceReportEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorComplianceReportEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNVendorComplianceReportOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField(ctx context.Context, v any) (coredata.VendorComplianceReportOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNVendorComplianceReportOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorComplianceReportOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.VendorComplianceReportOrderField) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNVendorComplianceReportOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNVendorComplianceReportOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField = map[string]coredata.VendorComplianceReportOrderField{
|
|
"REPORT_DATE": coredata.VendorComplianceReportOrderFieldReportDate,
|
|
"CREATED_AT": coredata.VendorComplianceReportOrderFieldCreatedAt,
|
|
}
|
|
marshalNVendorComplianceReportOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField = map[coredata.VendorComplianceReportOrderField]string{
|
|
coredata.VendorComplianceReportOrderFieldReportDate: "REPORT_DATE",
|
|
coredata.VendorComplianceReportOrderFieldCreatedAt: "CREATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNVendorConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorConnection(ctx context.Context, sel ast.SelectionSet, v types.VendorConnection) graphql.Marshaler {
|
|
return ec._VendorConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorConnection(ctx context.Context, sel ast.SelectionSet, v *types.VendorConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.VendorEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNVendorEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorEdge(ctx context.Context, sel ast.SelectionSet, v *types.VendorEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNVendorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorOrderField(ctx context.Context, v any) (coredata.VendorOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := coredata.VendorOrderField(tmp)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.VendorOrderField) graphql.Marshaler {
|
|
res := graphql.MarshalString(string(v))
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorRiskAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessment(ctx context.Context, sel ast.SelectionSet, v *types.VendorRiskAssessment) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorRiskAssessment(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorRiskAssessmentConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentConnection(ctx context.Context, sel ast.SelectionSet, v types.VendorRiskAssessmentConnection) graphql.Marshaler {
|
|
return ec._VendorRiskAssessmentConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorRiskAssessmentConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentConnection(ctx context.Context, sel ast.SelectionSet, v *types.VendorRiskAssessmentConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorRiskAssessmentConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorRiskAssessmentEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.VendorRiskAssessmentEdge) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalNVendorRiskAssessmentEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentEdge(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorRiskAssessmentEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentEdge(ctx context.Context, sel ast.SelectionSet, v *types.VendorRiskAssessmentEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorRiskAssessmentEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNVendorRiskAssessmentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField(ctx context.Context, v any) (coredata.VendorRiskAssessmentOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNVendorRiskAssessmentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorRiskAssessmentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.VendorRiskAssessmentOrderField) graphql.Marshaler {
|
|
res := graphql.MarshalString(marshalNVendorRiskAssessmentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNVendorRiskAssessmentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField = map[string]coredata.VendorRiskAssessmentOrderField{
|
|
"CREATED_AT": coredata.VendorRiskAssessmentOrderFieldCreatedAt,
|
|
"EXPIRES_AT": coredata.VendorRiskAssessmentOrderFieldExpiresAt,
|
|
"ASSESSED_AT": coredata.VendorRiskAssessmentOrderFieldAssessedAt,
|
|
}
|
|
marshalNVendorRiskAssessmentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField = map[coredata.VendorRiskAssessmentOrderField]string{
|
|
coredata.VendorRiskAssessmentOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.VendorRiskAssessmentOrderFieldExpiresAt: "EXPIRES_AT",
|
|
coredata.VendorRiskAssessmentOrderFieldAssessedAt: "ASSESSED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNViewer2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐViewer(ctx context.Context, sel ast.SelectionSet, v types.Viewer) graphql.Marshaler {
|
|
return ec._Viewer(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNViewer2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐViewer(ctx context.Context, sel ast.SelectionSet, v *types.Viewer) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Viewer(ctx, sel, v)
|
|
}
|
|
|
|
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 := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
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 {
|
|
res := graphql.MarshalString(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(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) {
|
|
var vSlice []any
|
|
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 := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
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 := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
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 := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
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)) {
|
|
ec.Errorf(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 {
|
|
res := graphql.MarshalString(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(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 {
|
|
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
|
|
}
|
|
res := graphql.MarshalBoolean(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOConnectorOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐConnectorOrder(ctx context.Context, v any) (*types.ConnectorOrder, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputConnectorOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOControlOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlOrderBy(ctx context.Context, v any) (*types.ControlOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputControlOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, v any) (*page.CursorKey, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := types.UnmarshalCursorKeyScalar(v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOCursorKey2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, sel ast.SelectionSet, v *page.CursorKey) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
res := types.MarshalCursorKeyScalar(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalODatetime2ᚖ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) marshalODatetime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
res := graphql.MarshalTime(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalODuration2ᚖtimeᚐDuration(ctx context.Context, v any) (*time.Duration, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := graphql.UnmarshalDuration(v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalODuration2ᚖtimeᚐDuration(ctx context.Context, sel ast.SelectionSet, v *time.Duration) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
res := graphql.MarshalDuration(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOEvidenceOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceOrderBy(ctx context.Context, v any) (*types.EvidenceOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputEvidenceOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOFrameworkOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkOrderBy(ctx context.Context, v any) (*types.FrameworkOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputFrameworkOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, v any) (*gid.GID, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := types.UnmarshalGIDScalar(v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, sel ast.SelectionSet, v *gid.GID) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
res := types.MarshalGIDScalar(*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
|
|
}
|
|
res := graphql.MarshalInt(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOMesureImportance2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance(ctx context.Context, v any) (*coredata.MesureImportance, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOMesureImportance2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOMesureImportance2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance(ctx context.Context, sel ast.SelectionSet, v *coredata.MesureImportance) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
res := graphql.MarshalString(marshalOMesureImportance2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOMesureImportance2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance = map[string]coredata.MesureImportance{
|
|
"MANDATORY": coredata.MesureImportanceMandatory,
|
|
"PREFERRED": coredata.MesureImportancePreferred,
|
|
"ADVANCED": coredata.MesureImportanceAdvanced,
|
|
}
|
|
marshalOMesureImportance2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureImportance = map[coredata.MesureImportance]string{
|
|
coredata.MesureImportanceMandatory: "MANDATORY",
|
|
coredata.MesureImportancePreferred: "PREFERRED",
|
|
coredata.MesureImportanceAdvanced: "ADVANCED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOMesureOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMesureOrderBy(ctx context.Context, v any) (*types.MesureOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputMesureOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOMesureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState(ctx context.Context, v any) (*coredata.MesureState, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOMesureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOMesureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState(ctx context.Context, sel ast.SelectionSet, v *coredata.MesureState) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
res := graphql.MarshalString(marshalOMesureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOMesureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState = map[string]coredata.MesureState{
|
|
"NOT_STARTED": coredata.MesureStateNotStarted,
|
|
"IN_PROGRESS": coredata.MesureStateInProgress,
|
|
"NOT_APPLICABLE": coredata.MesureStateNotApplicable,
|
|
"IMPLEMENTED": coredata.MesureStateImplemented,
|
|
}
|
|
marshalOMesureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMesureState = map[coredata.MesureState]string{
|
|
coredata.MesureStateNotStarted: "NOT_STARTED",
|
|
coredata.MesureStateInProgress: "IN_PROGRESS",
|
|
coredata.MesureStateNotApplicable: "NOT_APPLICABLE",
|
|
coredata.MesureStateImplemented: "IMPLEMENTED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOOrganizationOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationOrder(ctx context.Context, v any) (*types.OrganizationOrder, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputOrganizationOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOPeople2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeople(ctx context.Context, sel ast.SelectionSet, v *types.People) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._People(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOPeopleKind2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind(ctx context.Context, v any) (*coredata.PeopleKind, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOPeopleKind2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOPeopleKind2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind(ctx context.Context, sel ast.SelectionSet, v *coredata.PeopleKind) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
res := graphql.MarshalString(marshalOPeopleKind2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOPeopleKind2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind = map[string]coredata.PeopleKind{
|
|
"EMPLOYEE": coredata.PeopleKindEmployee,
|
|
"CONTRACTOR": coredata.PeopleKindContractor,
|
|
"SERVICE_ACCOUNT": coredata.PeopleKindServiceAccount,
|
|
}
|
|
marshalOPeopleKind2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleKind = map[coredata.PeopleKind]string{
|
|
coredata.PeopleKindEmployee: "EMPLOYEE",
|
|
coredata.PeopleKindContractor: "CONTRACTOR",
|
|
coredata.PeopleKindServiceAccount: "SERVICE_ACCOUNT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOPeopleOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeopleOrderBy(ctx context.Context, v any) (*types.PeopleOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputPeopleOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOPolicyOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPolicyOrderBy(ctx context.Context, v any) (*types.PolicyOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputPolicyOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOPolicyStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus(ctx context.Context, v any) (*coredata.PolicyStatus, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOPolicyStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOPolicyStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus(ctx context.Context, sel ast.SelectionSet, v *coredata.PolicyStatus) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
res := graphql.MarshalString(marshalOPolicyStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOPolicyStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus = map[string]coredata.PolicyStatus{
|
|
"DRAFT": coredata.PolicyStatusDraft,
|
|
"ACTIVE": coredata.PolicyStatusActive,
|
|
}
|
|
marshalOPolicyStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPolicyStatus = map[coredata.PolicyStatus]string{
|
|
coredata.PolicyStatusDraft: "DRAFT",
|
|
coredata.PolicyStatusActive: "ACTIVE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalORiskOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskOrderBy(ctx context.Context, v any) (*types.RiskOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputRiskOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalORiskTreatment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx context.Context, v any) (*coredata.RiskTreatment, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalORiskTreatment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalORiskTreatment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx context.Context, sel ast.SelectionSet, v *coredata.RiskTreatment) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
res := graphql.MarshalString(marshalORiskTreatment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalORiskTreatment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment = map[string]coredata.RiskTreatment{
|
|
"MITIGATED": coredata.RiskTreatmentMitigated,
|
|
"ACCEPTED": coredata.RiskTreatmentAccepted,
|
|
"AVOIDED": coredata.RiskTreatmentAvoided,
|
|
"TRANSFERRED": coredata.RiskTreatmentTransferred,
|
|
}
|
|
marshalORiskTreatment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskTreatment = map[coredata.RiskTreatment]string{
|
|
coredata.RiskTreatmentMitigated: "MITIGATED",
|
|
coredata.RiskTreatmentAccepted: "ACCEPTED",
|
|
coredata.RiskTreatmentAvoided: "AVOIDED",
|
|
coredata.RiskTreatmentTransferred: "TRANSFERRED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
var vSlice []any
|
|
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.unmarshalNString2string(ctx, vSlice[i])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
return res, nil
|
|
}
|
|
|
|
func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
ret := make(graphql.Array, len(v))
|
|
for i := range v {
|
|
ret[i] = ec.marshalNString2string(ctx, sel, v[i])
|
|
}
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
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
|
|
}
|
|
res := graphql.MarshalString(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOTaskOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskOrderBy(ctx context.Context, v any) (*types.TaskOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputTaskOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOTaskState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState(ctx context.Context, v any) (*coredata.TaskState, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOTaskState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOTaskState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState(ctx context.Context, sel ast.SelectionSet, v *coredata.TaskState) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
res := graphql.MarshalString(marshalOTaskState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOTaskState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState = map[string]coredata.TaskState{
|
|
"TODO": coredata.TaskStateTodo,
|
|
"DONE": coredata.TaskStateDone,
|
|
}
|
|
marshalOTaskState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTaskState = map[coredata.TaskState]string{
|
|
coredata.TaskStateTodo: "TODO",
|
|
coredata.TaskStateDone: "DONE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v any) (*graphql.Upload, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := graphql.UnmarshalUpload(v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, sel ast.SelectionSet, v *graphql.Upload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
res := graphql.MarshalUpload(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOUserOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUserOrderBy(ctx context.Context, v any) (*types.UserOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputUserOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOVendorComplianceReportOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportOrderBy(ctx context.Context, v any) (*types.VendorComplianceReportOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputVendorComplianceReportOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOVendorOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorOrderBy(ctx context.Context, v any) (*types.VendorOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputVendorOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOVendorRiskAssessmentOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentOrder(ctx context.Context, v any) (*types.VendorRiskAssessmentOrder, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputVendorRiskAssessmentOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
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 := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
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 := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
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 := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
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 := make(graphql.Array, len(v))
|
|
var wg sync.WaitGroup
|
|
isLen1 := len(v) == 1
|
|
if !isLen1 {
|
|
wg.Add(len(v))
|
|
}
|
|
for i := range v {
|
|
i := i
|
|
fc := &graphql.FieldContext{
|
|
Index: &i,
|
|
Result: &v[i],
|
|
}
|
|
ctx := graphql.WithFieldContext(ctx, fc)
|
|
f := func(i int) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = nil
|
|
}
|
|
}()
|
|
if !isLen1 {
|
|
defer wg.Done()
|
|
}
|
|
ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
|
|
}
|
|
if isLen1 {
|
|
f(i)
|
|
} else {
|
|
go f(i)
|
|
}
|
|
|
|
}
|
|
wg.Wait()
|
|
|
|
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 *****************************
|