88711 lines
2.8 MiB
88711 lines
2.8 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"
|
|
"github.com/getprobo/probo/pkg/server/graphql/types/cursor"
|
|
gid1 "github.com/getprobo/probo/pkg/server/graphql/types/gid"
|
|
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 {
|
|
Asset() AssetResolver
|
|
AssetConnection() AssetConnectionResolver
|
|
Audit() AuditResolver
|
|
AuditConnection() AuditConnectionResolver
|
|
ComplianceRegistry() ComplianceRegistryResolver
|
|
ComplianceRegistryConnection() ComplianceRegistryConnectionResolver
|
|
ContinualImprovementRegistry() ContinualImprovementRegistryResolver
|
|
ContinualImprovementRegistryConnection() ContinualImprovementRegistryConnectionResolver
|
|
Control() ControlResolver
|
|
ControlConnection() ControlConnectionResolver
|
|
Datum() DatumResolver
|
|
DatumConnection() DatumConnectionResolver
|
|
Document() DocumentResolver
|
|
DocumentConnection() DocumentConnectionResolver
|
|
DocumentVersion() DocumentVersionResolver
|
|
DocumentVersionSignature() DocumentVersionSignatureResolver
|
|
Evidence() EvidenceResolver
|
|
EvidenceConnection() EvidenceConnectionResolver
|
|
Framework() FrameworkResolver
|
|
FrameworkConnection() FrameworkConnectionResolver
|
|
Measure() MeasureResolver
|
|
MeasureConnection() MeasureConnectionResolver
|
|
Mutation() MutationResolver
|
|
NonconformityRegistry() NonconformityRegistryResolver
|
|
NonconformityRegistryConnection() NonconformityRegistryConnectionResolver
|
|
Organization() OrganizationResolver
|
|
PeopleConnection() PeopleConnectionResolver
|
|
ProcessingActivityRegistry() ProcessingActivityRegistryResolver
|
|
ProcessingActivityRegistryConnection() ProcessingActivityRegistryConnectionResolver
|
|
Query() QueryResolver
|
|
Report() ReportResolver
|
|
Risk() RiskResolver
|
|
RiskConnection() RiskConnectionResolver
|
|
Snapshot() SnapshotResolver
|
|
SnapshotConnection() SnapshotConnectionResolver
|
|
Task() TaskResolver
|
|
TaskConnection() TaskConnectionResolver
|
|
TrustCenter() TrustCenterResolver
|
|
User() UserResolver
|
|
Vendor() VendorResolver
|
|
VendorBusinessAssociateAgreement() VendorBusinessAssociateAgreementResolver
|
|
VendorComplianceReport() VendorComplianceReportResolver
|
|
VendorConnection() VendorConnectionResolver
|
|
VendorContact() VendorContactResolver
|
|
VendorDataPrivacyAgreement() VendorDataPrivacyAgreementResolver
|
|
VendorRiskAssessment() VendorRiskAssessmentResolver
|
|
VendorService() VendorServiceResolver
|
|
Viewer() ViewerResolver
|
|
}
|
|
|
|
type DirectiveRoot struct {
|
|
}
|
|
|
|
type ComplexityRoot struct {
|
|
AssessVendorPayload struct {
|
|
Vendor func(childComplexity int) int
|
|
}
|
|
|
|
Asset struct {
|
|
Amount func(childComplexity int) int
|
|
AssetType func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
Criticity func(childComplexity int) int
|
|
DataTypesStored func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
Owner func(childComplexity int) int
|
|
SnapshotID func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
Vendors func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy) int
|
|
}
|
|
|
|
AssetConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
AssetEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
AssignTaskPayload struct {
|
|
Task func(childComplexity int) int
|
|
}
|
|
|
|
Audit struct {
|
|
Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) int
|
|
CreatedAt func(childComplexity int) int
|
|
Framework func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
Report func(childComplexity int) int
|
|
ReportURL func(childComplexity int) int
|
|
ShowOnTrustCenter func(childComplexity int) int
|
|
State func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
ValidFrom func(childComplexity int) int
|
|
ValidUntil func(childComplexity int) int
|
|
}
|
|
|
|
AuditConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
AuditEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
BulkPublishDocumentVersionsPayload struct {
|
|
DocumentEdges func(childComplexity int) int
|
|
DocumentVersionEdges func(childComplexity int) int
|
|
}
|
|
|
|
BulkRequestSignaturesPayload struct {
|
|
DocumentVersionSignatureEdges func(childComplexity int) int
|
|
}
|
|
|
|
CancelSignatureRequestPayload struct {
|
|
DeletedDocumentVersionSignatureID func(childComplexity int) int
|
|
}
|
|
|
|
ComplianceRegistry struct {
|
|
ActionsToBeImplemented func(childComplexity int) int
|
|
Area func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
DueDate func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
LastReviewDate func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
Owner func(childComplexity int) int
|
|
ReferenceID func(childComplexity int) int
|
|
Regulator func(childComplexity int) int
|
|
Requirement func(childComplexity int) int
|
|
SnapshotID func(childComplexity int) int
|
|
Source func(childComplexity int) int
|
|
SourceID func(childComplexity int) int
|
|
Status func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
ComplianceRegistryConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
ComplianceRegistryEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node 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
|
|
}
|
|
|
|
ContinualImprovementRegistry struct {
|
|
CreatedAt func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
Owner func(childComplexity int) int
|
|
Priority func(childComplexity int) int
|
|
ReferenceID func(childComplexity int) int
|
|
SnapshotID func(childComplexity int) int
|
|
Source func(childComplexity int) int
|
|
SourceID func(childComplexity int) int
|
|
Status func(childComplexity int) int
|
|
TargetDate func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
ContinualImprovementRegistryConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
ContinualImprovementRegistryEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Control struct {
|
|
Audits func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.AuditOrderBy) int
|
|
CreatedAt func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
Documents func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy, filter *types.DocumentFilter) int
|
|
ExclusionJustification func(childComplexity int) int
|
|
Framework func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Measures func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeasureOrderBy, filter *types.MeasureFilter) int
|
|
Name func(childComplexity int) int
|
|
SectionTitle func(childComplexity int) int
|
|
Snapshots func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SnapshotOrderBy) int
|
|
Status func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
ControlConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
ControlEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
CreateAssetPayload struct {
|
|
AssetEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateAuditPayload struct {
|
|
AuditEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateComplianceRegistryPayload struct {
|
|
ComplianceRegistryEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateContinualImprovementRegistryPayload struct {
|
|
ContinualImprovementRegistryEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateControlAuditMappingPayload struct {
|
|
AuditEdge func(childComplexity int) int
|
|
ControlEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateControlDocumentMappingPayload struct {
|
|
ControlEdge func(childComplexity int) int
|
|
DocumentEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateControlMeasureMappingPayload struct {
|
|
ControlEdge func(childComplexity int) int
|
|
MeasureEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateControlPayload struct {
|
|
ControlEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateControlSnapshotMappingPayload struct {
|
|
ControlEdge func(childComplexity int) int
|
|
SnapshotEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateDatumPayload struct {
|
|
DatumEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateDocumentPayload struct {
|
|
DocumentEdge func(childComplexity int) int
|
|
DocumentVersionEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateDraftDocumentVersionPayload struct {
|
|
DocumentVersionEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateEvidencePayload struct {
|
|
EvidenceEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateFrameworkPayload struct {
|
|
FrameworkEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateMeasurePayload struct {
|
|
MeasureEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateNonconformityRegistryPayload struct {
|
|
NonconformityRegistryEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateOrganizationPayload struct {
|
|
OrganizationEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreatePeoplePayload struct {
|
|
PeopleEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateProcessingActivityRegistryPayload struct {
|
|
ProcessingActivityRegistryEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateRiskDocumentMappingPayload struct {
|
|
DocumentEdge func(childComplexity int) int
|
|
RiskEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateRiskMeasureMappingPayload struct {
|
|
MeasureEdge func(childComplexity int) int
|
|
RiskEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateRiskPayload struct {
|
|
RiskEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateSnapshotPayload struct {
|
|
SnapshotEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateTaskPayload struct {
|
|
TaskEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateTrustCenterAccessPayload struct {
|
|
TrustCenterAccessEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateVendorContactPayload struct {
|
|
VendorContactEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateVendorPayload struct {
|
|
VendorEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateVendorRiskAssessmentPayload struct {
|
|
VendorRiskAssessmentEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateVendorServicePayload struct {
|
|
VendorServiceEdge func(childComplexity int) int
|
|
}
|
|
|
|
Datum struct {
|
|
CreatedAt func(childComplexity int) int
|
|
DataClassification func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
Owner func(childComplexity int) int
|
|
SnapshotID func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
Vendors func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy) int
|
|
}
|
|
|
|
DatumConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
DatumEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
DeleteAssetPayload struct {
|
|
DeletedAssetID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteAuditPayload struct {
|
|
DeletedAuditID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteAuditReportPayload struct {
|
|
Audit func(childComplexity int) int
|
|
}
|
|
|
|
DeleteComplianceRegistryPayload struct {
|
|
DeletedComplianceRegistryID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteContinualImprovementRegistryPayload struct {
|
|
DeletedContinualImprovementRegistryID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteControlAuditMappingPayload struct {
|
|
DeletedAuditID func(childComplexity int) int
|
|
DeletedControlID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteControlDocumentMappingPayload struct {
|
|
DeletedControlID func(childComplexity int) int
|
|
DeletedDocumentID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteControlMeasureMappingPayload struct {
|
|
DeletedControlID func(childComplexity int) int
|
|
DeletedMeasureID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteControlPayload struct {
|
|
DeletedControlID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteControlSnapshotMappingPayload struct {
|
|
DeletedControlID func(childComplexity int) int
|
|
DeletedSnapshotID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteDatumPayload struct {
|
|
DeletedDatumID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteDocumentPayload struct {
|
|
DeletedDocumentID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteDraftDocumentVersionPayload struct {
|
|
DeletedDocumentVersionID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteEvidencePayload struct {
|
|
DeletedEvidenceID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteFrameworkPayload struct {
|
|
DeletedFrameworkID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteMeasurePayload struct {
|
|
DeletedMeasureID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteNonconformityRegistryPayload struct {
|
|
DeletedNonconformityRegistryID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteOrganizationPayload struct {
|
|
DeletedOrganizationID func(childComplexity int) int
|
|
}
|
|
|
|
DeletePeoplePayload struct {
|
|
DeletedPeopleID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteProcessingActivityRegistryPayload struct {
|
|
DeletedProcessingActivityRegistryID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteRiskDocumentMappingPayload struct {
|
|
DeletedDocumentID func(childComplexity int) int
|
|
DeletedRiskID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteRiskMeasureMappingPayload struct {
|
|
DeletedMeasureID func(childComplexity int) int
|
|
DeletedRiskID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteRiskPayload struct {
|
|
DeletedRiskID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteSnapshotPayload struct {
|
|
DeletedSnapshotID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteTaskPayload struct {
|
|
DeletedTaskID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteTrustCenterAccessPayload struct {
|
|
DeletedTrustCenterAccessID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteVendorBusinessAssociateAgreementPayload struct {
|
|
DeletedVendorID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteVendorComplianceReportPayload struct {
|
|
DeletedVendorComplianceReportID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteVendorContactPayload struct {
|
|
DeletedVendorContactID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteVendorDataPrivacyAgreementPayload struct {
|
|
DeletedVendorID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteVendorPayload struct {
|
|
DeletedVendorID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteVendorServicePayload struct {
|
|
DeletedVendorServiceID func(childComplexity int) int
|
|
}
|
|
|
|
Document struct {
|
|
Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) int
|
|
CreatedAt func(childComplexity int) int
|
|
CurrentPublishedVersion func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
DocumentType func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
Owner func(childComplexity int) int
|
|
ShowOnTrustCenter func(childComplexity int) int
|
|
Title func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
Versions func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentVersionOrderBy, filter *types.DocumentVersionFilter) int
|
|
}
|
|
|
|
DocumentConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
DocumentEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
DocumentVersion struct {
|
|
Changelog func(childComplexity int) int
|
|
Content func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
Document func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Owner func(childComplexity int) int
|
|
PublishedAt func(childComplexity int) int
|
|
PublishedBy func(childComplexity int) int
|
|
Signatures func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentVersionSignatureOrder) int
|
|
Status func(childComplexity int) int
|
|
Title func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
Version func(childComplexity int) int
|
|
}
|
|
|
|
DocumentVersionConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
DocumentVersionEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
DocumentVersionSignature struct {
|
|
CreatedAt func(childComplexity int) int
|
|
DocumentVersion func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
RequestedAt func(childComplexity int) int
|
|
RequestedBy func(childComplexity int) int
|
|
SignedAt func(childComplexity int) int
|
|
SignedBy func(childComplexity int) int
|
|
State func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
DocumentVersionSignatureConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
DocumentVersionSignatureEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node 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
|
|
Measure func(childComplexity int) int
|
|
MimeType func(childComplexity int) int
|
|
Size func(childComplexity int) int
|
|
State func(childComplexity int) int
|
|
Task 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
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
EvidenceEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
ExportDocumentVersionPDFPayload struct {
|
|
Data func(childComplexity int) int
|
|
}
|
|
|
|
Framework struct {
|
|
Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) int
|
|
CreatedAt func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
FrameworkConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
FrameworkEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
FulfillEvidencePayload struct {
|
|
EvidenceEdge func(childComplexity int) int
|
|
}
|
|
|
|
GenerateDocumentChangelogPayload struct {
|
|
Changelog func(childComplexity int) int
|
|
}
|
|
|
|
GenerateFrameworkStateOfApplicabilityPayload struct {
|
|
Data func(childComplexity int) int
|
|
}
|
|
|
|
ImportFrameworkPayload struct {
|
|
FrameworkEdge func(childComplexity int) int
|
|
}
|
|
|
|
ImportMeasurePayload struct {
|
|
MeasureEdges func(childComplexity int) int
|
|
}
|
|
|
|
InviteUserPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
Measure struct {
|
|
Category func(childComplexity int) int
|
|
Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) 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
|
|
Risks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RiskOrderBy, filter *types.RiskFilter) 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
|
|
}
|
|
|
|
MeasureConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
MeasureEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Mutation struct {
|
|
AssessVendor func(childComplexity int, input types.AssessVendorInput) int
|
|
AssignTask func(childComplexity int, input types.AssignTaskInput) int
|
|
BulkPublishDocumentVersions func(childComplexity int, input types.BulkPublishDocumentVersionsInput) int
|
|
BulkRequestSignatures func(childComplexity int, input types.BulkRequestSignaturesInput) int
|
|
CancelSignatureRequest func(childComplexity int, input types.CancelSignatureRequestInput) int
|
|
ConfirmEmail func(childComplexity int, input types.ConfirmEmailInput) int
|
|
CreateAsset func(childComplexity int, input types.CreateAssetInput) int
|
|
CreateAudit func(childComplexity int, input types.CreateAuditInput) int
|
|
CreateComplianceRegistry func(childComplexity int, input types.CreateComplianceRegistryInput) int
|
|
CreateContinualImprovementRegistry func(childComplexity int, input types.CreateContinualImprovementRegistryInput) int
|
|
CreateControl func(childComplexity int, input types.CreateControlInput) int
|
|
CreateControlAuditMapping func(childComplexity int, input types.CreateControlAuditMappingInput) int
|
|
CreateControlDocumentMapping func(childComplexity int, input types.CreateControlDocumentMappingInput) int
|
|
CreateControlMeasureMapping func(childComplexity int, input types.CreateControlMeasureMappingInput) int
|
|
CreateControlSnapshotMapping func(childComplexity int, input types.CreateControlSnapshotMappingInput) int
|
|
CreateDatum func(childComplexity int, input types.CreateDatumInput) int
|
|
CreateDocument func(childComplexity int, input types.CreateDocumentInput) int
|
|
CreateDraftDocumentVersion func(childComplexity int, input types.CreateDraftDocumentVersionInput) int
|
|
CreateFramework func(childComplexity int, input types.CreateFrameworkInput) int
|
|
CreateMeasure func(childComplexity int, input types.CreateMeasureInput) int
|
|
CreateNonconformityRegistry func(childComplexity int, input types.CreateNonconformityRegistryInput) int
|
|
CreateOrganization func(childComplexity int, input types.CreateOrganizationInput) int
|
|
CreatePeople func(childComplexity int, input types.CreatePeopleInput) int
|
|
CreateProcessingActivityRegistry func(childComplexity int, input types.CreateProcessingActivityRegistryInput) int
|
|
CreateRisk func(childComplexity int, input types.CreateRiskInput) int
|
|
CreateRiskDocumentMapping func(childComplexity int, input types.CreateRiskDocumentMappingInput) int
|
|
CreateRiskMeasureMapping func(childComplexity int, input types.CreateRiskMeasureMappingInput) int
|
|
CreateSnapshot func(childComplexity int, input types.CreateSnapshotInput) int
|
|
CreateTask func(childComplexity int, input types.CreateTaskInput) int
|
|
CreateTrustCenterAccess func(childComplexity int, input types.CreateTrustCenterAccessInput) int
|
|
CreateVendor func(childComplexity int, input types.CreateVendorInput) int
|
|
CreateVendorContact func(childComplexity int, input types.CreateVendorContactInput) int
|
|
CreateVendorRiskAssessment func(childComplexity int, input types.CreateVendorRiskAssessmentInput) int
|
|
CreateVendorService func(childComplexity int, input types.CreateVendorServiceInput) int
|
|
DeleteAsset func(childComplexity int, input types.DeleteAssetInput) int
|
|
DeleteAudit func(childComplexity int, input types.DeleteAuditInput) int
|
|
DeleteAuditReport func(childComplexity int, input types.DeleteAuditReportInput) int
|
|
DeleteComplianceRegistry func(childComplexity int, input types.DeleteComplianceRegistryInput) int
|
|
DeleteContinualImprovementRegistry func(childComplexity int, input types.DeleteContinualImprovementRegistryInput) int
|
|
DeleteControl func(childComplexity int, input types.DeleteControlInput) int
|
|
DeleteControlAuditMapping func(childComplexity int, input types.DeleteControlAuditMappingInput) int
|
|
DeleteControlDocumentMapping func(childComplexity int, input types.DeleteControlDocumentMappingInput) int
|
|
DeleteControlMeasureMapping func(childComplexity int, input types.DeleteControlMeasureMappingInput) int
|
|
DeleteControlSnapshotMapping func(childComplexity int, input types.DeleteControlSnapshotMappingInput) int
|
|
DeleteDatum func(childComplexity int, input types.DeleteDatumInput) int
|
|
DeleteDocument func(childComplexity int, input types.DeleteDocumentInput) int
|
|
DeleteDraftDocumentVersion func(childComplexity int, input types.DeleteDraftDocumentVersionInput) int
|
|
DeleteEvidence func(childComplexity int, input types.DeleteEvidenceInput) int
|
|
DeleteFramework func(childComplexity int, input types.DeleteFrameworkInput) int
|
|
DeleteMeasure func(childComplexity int, input types.DeleteMeasureInput) int
|
|
DeleteNonconformityRegistry func(childComplexity int, input types.DeleteNonconformityRegistryInput) int
|
|
DeleteOrganization func(childComplexity int, input types.DeleteOrganizationInput) int
|
|
DeletePeople func(childComplexity int, input types.DeletePeopleInput) int
|
|
DeleteProcessingActivityRegistry func(childComplexity int, input types.DeleteProcessingActivityRegistryInput) int
|
|
DeleteRisk func(childComplexity int, input types.DeleteRiskInput) int
|
|
DeleteRiskDocumentMapping func(childComplexity int, input types.DeleteRiskDocumentMappingInput) int
|
|
DeleteRiskMeasureMapping func(childComplexity int, input types.DeleteRiskMeasureMappingInput) int
|
|
DeleteSnapshot func(childComplexity int, input types.DeleteSnapshotInput) int
|
|
DeleteTask func(childComplexity int, input types.DeleteTaskInput) int
|
|
DeleteTrustCenterAccess func(childComplexity int, input types.DeleteTrustCenterAccessInput) int
|
|
DeleteVendor func(childComplexity int, input types.DeleteVendorInput) int
|
|
DeleteVendorBusinessAssociateAgreement func(childComplexity int, input types.DeleteVendorBusinessAssociateAgreementInput) int
|
|
DeleteVendorComplianceReport func(childComplexity int, input types.DeleteVendorComplianceReportInput) int
|
|
DeleteVendorContact func(childComplexity int, input types.DeleteVendorContactInput) int
|
|
DeleteVendorDataPrivacyAgreement func(childComplexity int, input types.DeleteVendorDataPrivacyAgreementInput) int
|
|
DeleteVendorService func(childComplexity int, input types.DeleteVendorServiceInput) int
|
|
ExportDocumentVersionPDF func(childComplexity int, input types.ExportDocumentVersionPDFInput) int
|
|
FulfillEvidence func(childComplexity int, input types.FulfillEvidenceInput) int
|
|
GenerateDocumentChangelog func(childComplexity int, input types.GenerateDocumentChangelogInput) int
|
|
GenerateFrameworkStateOfApplicability func(childComplexity int, input types.GenerateFrameworkStateOfApplicabilityInput) int
|
|
ImportFramework func(childComplexity int, input types.ImportFrameworkInput) int
|
|
ImportMeasure func(childComplexity int, input types.ImportMeasureInput) int
|
|
InviteUser func(childComplexity int, input types.InviteUserInput) int
|
|
PublishDocumentVersion func(childComplexity int, input types.PublishDocumentVersionInput) int
|
|
RemoveUser func(childComplexity int, input types.RemoveUserInput) int
|
|
RequestEvidence func(childComplexity int, input types.RequestEvidenceInput) int
|
|
RequestSignature func(childComplexity int, input types.RequestSignatureInput) int
|
|
SendSigningNotifications func(childComplexity int, input types.SendSigningNotificationsInput) int
|
|
UnassignTask func(childComplexity int, input types.UnassignTaskInput) int
|
|
UpdateAsset func(childComplexity int, input types.UpdateAssetInput) int
|
|
UpdateAudit func(childComplexity int, input types.UpdateAuditInput) int
|
|
UpdateComplianceRegistry func(childComplexity int, input types.UpdateComplianceRegistryInput) int
|
|
UpdateContinualImprovementRegistry func(childComplexity int, input types.UpdateContinualImprovementRegistryInput) int
|
|
UpdateControl func(childComplexity int, input types.UpdateControlInput) int
|
|
UpdateDatum func(childComplexity int, input types.UpdateDatumInput) int
|
|
UpdateDocument func(childComplexity int, input types.UpdateDocumentInput) int
|
|
UpdateDocumentVersion func(childComplexity int, input types.UpdateDocumentVersionInput) int
|
|
UpdateFramework func(childComplexity int, input types.UpdateFrameworkInput) int
|
|
UpdateMeasure func(childComplexity int, input types.UpdateMeasureInput) int
|
|
UpdateNonconformityRegistry func(childComplexity int, input types.UpdateNonconformityRegistryInput) int
|
|
UpdateOrganization func(childComplexity int, input types.UpdateOrganizationInput) int
|
|
UpdatePeople func(childComplexity int, input types.UpdatePeopleInput) int
|
|
UpdateProcessingActivityRegistry func(childComplexity int, input types.UpdateProcessingActivityRegistryInput) int
|
|
UpdateRisk func(childComplexity int, input types.UpdateRiskInput) int
|
|
UpdateTask func(childComplexity int, input types.UpdateTaskInput) int
|
|
UpdateTrustCenter func(childComplexity int, input types.UpdateTrustCenterInput) int
|
|
UpdateTrustCenterAccess func(childComplexity int, input types.UpdateTrustCenterAccessInput) int
|
|
UpdateVendor func(childComplexity int, input types.UpdateVendorInput) int
|
|
UpdateVendorBusinessAssociateAgreement func(childComplexity int, input types.UpdateVendorBusinessAssociateAgreementInput) int
|
|
UpdateVendorContact func(childComplexity int, input types.UpdateVendorContactInput) int
|
|
UpdateVendorDataPrivacyAgreement func(childComplexity int, input types.UpdateVendorDataPrivacyAgreementInput) int
|
|
UpdateVendorService func(childComplexity int, input types.UpdateVendorServiceInput) int
|
|
UploadAuditReport func(childComplexity int, input types.UploadAuditReportInput) int
|
|
UploadMeasureEvidence func(childComplexity int, input types.UploadMeasureEvidenceInput) int
|
|
UploadTaskEvidence func(childComplexity int, input types.UploadTaskEvidenceInput) int
|
|
UploadVendorBusinessAssociateAgreement func(childComplexity int, input types.UploadVendorBusinessAssociateAgreementInput) int
|
|
UploadVendorComplianceReport func(childComplexity int, input types.UploadVendorComplianceReportInput) int
|
|
UploadVendorDataPrivacyAgreement func(childComplexity int, input types.UploadVendorDataPrivacyAgreementInput) int
|
|
}
|
|
|
|
NonconformityRegistry struct {
|
|
Audit func(childComplexity int) int
|
|
CorrectiveAction func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
DateIdentified func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
DueDate func(childComplexity int) int
|
|
EffectivenessCheck func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
Owner func(childComplexity int) int
|
|
ReferenceID func(childComplexity int) int
|
|
RootCause func(childComplexity int) int
|
|
SnapshotID func(childComplexity int) int
|
|
Status func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
NonconformityRegistryConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
NonconformityRegistryEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Organization struct {
|
|
Assets func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.AssetOrderBy, filter *types.AssetFilter) int
|
|
Audits func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.AuditOrderBy) int
|
|
ComplianceRegistries func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ComplianceRegistryOrderBy, filter *types.ComplianceRegistryFilter) int
|
|
Connectors func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ConnectorOrder) int
|
|
ContinualImprovementRegistries func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ContinualImprovementRegistriesOrderBy, filter *types.ContinualImprovementRegistryFilter) int
|
|
Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) int
|
|
CreatedAt func(childComplexity int) int
|
|
Data func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DatumOrderBy, filter *types.DatumFilter) int
|
|
Documents func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy, filter *types.DocumentFilter) 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
|
|
Measures func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeasureOrderBy, filter *types.MeasureFilter) int
|
|
Name func(childComplexity int) int
|
|
NonconformityRegistries func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.NonconformityRegistryOrderBy, filter *types.NonconformityRegistryFilter) int
|
|
Peoples func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.PeopleOrderBy, filter *types.PeopleFilter) int
|
|
ProcessingActivityRegistries func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProcessingActivityRegistryOrderBy, filter *types.ProcessingActivityRegistryFilter) int
|
|
Risks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RiskOrderBy, filter *types.RiskFilter) int
|
|
Snapshots func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SnapshotOrderBy) int
|
|
Tasks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.TaskOrderBy) int
|
|
TrustCenter func(childComplexity int) 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
|
|
ContractEndDate func(childComplexity int) int
|
|
ContractStartDate func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
FullName func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Kind func(childComplexity int) int
|
|
Position 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
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
PeopleEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
ProcessingActivityRegistry struct {
|
|
ConsentEvidenceLink func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
DataProtectionImpactAssessment func(childComplexity int) int
|
|
DataSubjectCategory func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
InternationalTransfers func(childComplexity int) int
|
|
LawfulBasis func(childComplexity int) int
|
|
Location func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
PersonalDataCategory func(childComplexity int) int
|
|
Purpose func(childComplexity int) int
|
|
Recipients func(childComplexity int) int
|
|
RetentionPeriod func(childComplexity int) int
|
|
SecurityMeasures func(childComplexity int) int
|
|
SnapshotID func(childComplexity int) int
|
|
SourceID func(childComplexity int) int
|
|
SpecialOrCriminalData func(childComplexity int) int
|
|
TransferImpactAssessment func(childComplexity int) int
|
|
TransferSafeguards func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
ProcessingActivityRegistryConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
ProcessingActivityRegistryEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
PublishDocumentVersionPayload struct {
|
|
Document func(childComplexity int) int
|
|
DocumentVersion 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
|
|
}
|
|
|
|
Report struct {
|
|
CreatedAt func(childComplexity int) int
|
|
DownloadURL func(childComplexity int) int
|
|
Filename func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
MimeType func(childComplexity int) int
|
|
ObjectKey func(childComplexity int) int
|
|
Size func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
RequestEvidencePayload struct {
|
|
EvidenceEdge func(childComplexity int) int
|
|
}
|
|
|
|
RequestSignaturePayload struct {
|
|
DocumentVersionSignatureEdge 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, filter *types.ControlFilter) int
|
|
CreatedAt func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
Documents func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy, filter *types.DocumentFilter) int
|
|
ID func(childComplexity int) int
|
|
InherentImpact func(childComplexity int) int
|
|
InherentLikelihood func(childComplexity int) int
|
|
InherentRiskScore func(childComplexity int) int
|
|
Measures func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeasureOrderBy, filter *types.MeasureFilter) int
|
|
Name func(childComplexity int) int
|
|
Note func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
Owner func(childComplexity int) int
|
|
ResidualImpact func(childComplexity int) int
|
|
ResidualLikelihood func(childComplexity int) int
|
|
ResidualRiskScore 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
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
RiskEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
SendSigningNotificationsPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
Session struct {
|
|
ExpiresAt func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
}
|
|
|
|
Snapshot struct {
|
|
Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) int
|
|
CreatedAt func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
Type func(childComplexity int) int
|
|
}
|
|
|
|
SnapshotConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
SnapshotEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Task struct {
|
|
AssignedTo func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
Deadline 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
|
|
Measure func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
Organization 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
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
TaskEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
TrustCenter struct {
|
|
Accesses func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.TrustCenterAccessOrderField]) int
|
|
Active func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
Slug func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
TrustCenterAccess struct {
|
|
Active func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
Email func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
TrustCenterAccessConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
TrustCenterAccessEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
TrustCenterConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
TrustCenterEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
UnassignTaskPayload struct {
|
|
Task func(childComplexity int) int
|
|
}
|
|
|
|
UpdateAssetPayload struct {
|
|
Asset func(childComplexity int) int
|
|
}
|
|
|
|
UpdateAuditPayload struct {
|
|
Audit func(childComplexity int) int
|
|
}
|
|
|
|
UpdateComplianceRegistryPayload struct {
|
|
ComplianceRegistry func(childComplexity int) int
|
|
}
|
|
|
|
UpdateContinualImprovementRegistryPayload struct {
|
|
ContinualImprovementRegistry func(childComplexity int) int
|
|
}
|
|
|
|
UpdateControlPayload struct {
|
|
Control func(childComplexity int) int
|
|
}
|
|
|
|
UpdateDatumPayload struct {
|
|
Datum func(childComplexity int) int
|
|
}
|
|
|
|
UpdateDocumentPayload struct {
|
|
Document func(childComplexity int) int
|
|
}
|
|
|
|
UpdateDocumentVersionPayload struct {
|
|
DocumentVersion func(childComplexity int) int
|
|
}
|
|
|
|
UpdateFrameworkPayload struct {
|
|
Framework func(childComplexity int) int
|
|
}
|
|
|
|
UpdateMeasurePayload struct {
|
|
Measure func(childComplexity int) int
|
|
}
|
|
|
|
UpdateNonconformityRegistryPayload struct {
|
|
NonconformityRegistry func(childComplexity int) int
|
|
}
|
|
|
|
UpdateOrganizationPayload struct {
|
|
Organization func(childComplexity int) int
|
|
}
|
|
|
|
UpdatePeoplePayload struct {
|
|
People func(childComplexity int) int
|
|
}
|
|
|
|
UpdateProcessingActivityRegistryPayload struct {
|
|
ProcessingActivityRegistry func(childComplexity int) int
|
|
}
|
|
|
|
UpdateRiskPayload struct {
|
|
Risk func(childComplexity int) int
|
|
}
|
|
|
|
UpdateTaskPayload struct {
|
|
Task func(childComplexity int) int
|
|
}
|
|
|
|
UpdateTrustCenterAccessPayload struct {
|
|
TrustCenterAccess func(childComplexity int) int
|
|
}
|
|
|
|
UpdateTrustCenterPayload struct {
|
|
TrustCenter func(childComplexity int) int
|
|
}
|
|
|
|
UpdateVendorBusinessAssociateAgreementPayload struct {
|
|
VendorBusinessAssociateAgreement func(childComplexity int) int
|
|
}
|
|
|
|
UpdateVendorContactPayload struct {
|
|
VendorContact func(childComplexity int) int
|
|
}
|
|
|
|
UpdateVendorDataPrivacyAgreementPayload struct {
|
|
VendorDataPrivacyAgreement func(childComplexity int) int
|
|
}
|
|
|
|
UpdateVendorPayload struct {
|
|
Vendor func(childComplexity int) int
|
|
}
|
|
|
|
UpdateVendorServicePayload struct {
|
|
VendorService func(childComplexity int) int
|
|
}
|
|
|
|
UploadAuditReportPayload struct {
|
|
Audit func(childComplexity int) int
|
|
}
|
|
|
|
UploadMeasureEvidencePayload struct {
|
|
EvidenceEdge func(childComplexity int) int
|
|
}
|
|
|
|
UploadTaskEvidencePayload struct {
|
|
EvidenceEdge func(childComplexity int) int
|
|
}
|
|
|
|
UploadVendorBusinessAssociateAgreementPayload struct {
|
|
VendorBusinessAssociateAgreement func(childComplexity int) int
|
|
}
|
|
|
|
UploadVendorComplianceReportPayload struct {
|
|
VendorComplianceReportEdge func(childComplexity int) int
|
|
}
|
|
|
|
UploadVendorDataPrivacyAgreementPayload struct {
|
|
VendorDataPrivacyAgreement 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 {
|
|
BusinessAssociateAgreement func(childComplexity int) int
|
|
BusinessAssociateAgreementURL func(childComplexity int) int
|
|
BusinessOwner func(childComplexity int) int
|
|
Category 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
|
|
Contacts func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorContactOrderBy) int
|
|
CreatedAt func(childComplexity int) int
|
|
DataPrivacyAgreement 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
|
|
Organization 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
|
|
Services func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorServiceOrderBy) int
|
|
ShowOnTrustCenter func(childComplexity int) int
|
|
StatusPageURL func(childComplexity int) int
|
|
SubprocessorsListURL func(childComplexity int) int
|
|
TermsOfServiceURL func(childComplexity int) int
|
|
TrustPageURL func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
WebsiteURL func(childComplexity int) int
|
|
}
|
|
|
|
VendorBusinessAssociateAgreement struct {
|
|
CreatedAt func(childComplexity int) int
|
|
FileName func(childComplexity int) int
|
|
FileSize func(childComplexity int) int
|
|
FileURL func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
ValidFrom func(childComplexity int) int
|
|
ValidUntil func(childComplexity int) int
|
|
Vendor 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
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
VendorContact struct {
|
|
CreatedAt func(childComplexity int) int
|
|
Email func(childComplexity int) int
|
|
FullName func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Phone func(childComplexity int) int
|
|
Role func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
Vendor func(childComplexity int) int
|
|
}
|
|
|
|
VendorContactConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
VendorContactEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
VendorDataPrivacyAgreement struct {
|
|
CreatedAt func(childComplexity int) int
|
|
FileName func(childComplexity int) int
|
|
FileSize func(childComplexity int) int
|
|
FileURL func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
ValidFrom func(childComplexity int) int
|
|
ValidUntil func(childComplexity int) int
|
|
Vendor 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
|
|
}
|
|
|
|
VendorService struct {
|
|
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
|
|
Vendor func(childComplexity int) int
|
|
}
|
|
|
|
VendorServiceConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
VendorServiceEdge 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, filter *types.OrganizationFilter) int
|
|
User func(childComplexity int) int
|
|
}
|
|
}
|
|
|
|
type AssetResolver interface {
|
|
Owner(ctx context.Context, obj *types.Asset) (*types.People, error)
|
|
Vendors(ctx context.Context, obj *types.Asset, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy) (*types.VendorConnection, error)
|
|
|
|
AssetType(ctx context.Context, obj *types.Asset) (coredata.AssetType, error)
|
|
|
|
Organization(ctx context.Context, obj *types.Asset) (*types.Organization, error)
|
|
}
|
|
type AssetConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.AssetConnection) (int, error)
|
|
}
|
|
type AuditResolver interface {
|
|
Organization(ctx context.Context, obj *types.Audit) (*types.Organization, error)
|
|
Framework(ctx context.Context, obj *types.Audit) (*types.Framework, error)
|
|
|
|
Report(ctx context.Context, obj *types.Audit) (*types.Report, error)
|
|
ReportURL(ctx context.Context, obj *types.Audit) (*string, error)
|
|
|
|
Controls(ctx context.Context, obj *types.Audit, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, error)
|
|
}
|
|
type AuditConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.AuditConnection) (int, error)
|
|
}
|
|
type ComplianceRegistryResolver interface {
|
|
Organization(ctx context.Context, obj *types.ComplianceRegistry) (*types.Organization, error)
|
|
|
|
Owner(ctx context.Context, obj *types.ComplianceRegistry) (*types.People, error)
|
|
}
|
|
type ComplianceRegistryConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.ComplianceRegistryConnection) (int, error)
|
|
}
|
|
type ContinualImprovementRegistryResolver interface {
|
|
Organization(ctx context.Context, obj *types.ContinualImprovementRegistry) (*types.Organization, error)
|
|
|
|
Owner(ctx context.Context, obj *types.ContinualImprovementRegistry) (*types.People, error)
|
|
}
|
|
type ContinualImprovementRegistryConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.ContinualImprovementRegistryConnection) (int, error)
|
|
}
|
|
type ControlResolver interface {
|
|
Framework(ctx context.Context, obj *types.Control) (*types.Framework, error)
|
|
Measures(ctx context.Context, obj *types.Control, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeasureOrderBy, filter *types.MeasureFilter) (*types.MeasureConnection, error)
|
|
Documents(ctx context.Context, obj *types.Control, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy, filter *types.DocumentFilter) (*types.DocumentConnection, error)
|
|
Audits(ctx context.Context, obj *types.Control, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.AuditOrderBy) (*types.AuditConnection, error)
|
|
Snapshots(ctx context.Context, obj *types.Control, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SnapshotOrderBy) (*types.SnapshotConnection, error)
|
|
}
|
|
type ControlConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.ControlConnection) (int, error)
|
|
}
|
|
type DatumResolver interface {
|
|
Owner(ctx context.Context, obj *types.Datum) (*types.People, error)
|
|
Vendors(ctx context.Context, obj *types.Datum, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy) (*types.VendorConnection, error)
|
|
Organization(ctx context.Context, obj *types.Datum) (*types.Organization, error)
|
|
}
|
|
type DatumConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.DatumConnection) (int, error)
|
|
}
|
|
type DocumentResolver interface {
|
|
Owner(ctx context.Context, obj *types.Document) (*types.People, error)
|
|
Organization(ctx context.Context, obj *types.Document) (*types.Organization, error)
|
|
Versions(ctx context.Context, obj *types.Document, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentVersionOrderBy, filter *types.DocumentVersionFilter) (*types.DocumentVersionConnection, error)
|
|
Controls(ctx context.Context, obj *types.Document, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, error)
|
|
}
|
|
type DocumentConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.DocumentConnection) (int, error)
|
|
}
|
|
type DocumentVersionResolver interface {
|
|
Document(ctx context.Context, obj *types.DocumentVersion) (*types.Document, error)
|
|
|
|
Owner(ctx context.Context, obj *types.DocumentVersion) (*types.People, error)
|
|
Signatures(ctx context.Context, obj *types.DocumentVersion, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentVersionSignatureOrder) (*types.DocumentVersionSignatureConnection, error)
|
|
PublishedBy(ctx context.Context, obj *types.DocumentVersion) (*types.People, error)
|
|
}
|
|
type DocumentVersionSignatureResolver interface {
|
|
DocumentVersion(ctx context.Context, obj *types.DocumentVersionSignature) (*types.DocumentVersion, error)
|
|
|
|
SignedBy(ctx context.Context, obj *types.DocumentVersionSignature) (*types.People, error)
|
|
|
|
RequestedBy(ctx context.Context, obj *types.DocumentVersionSignature) (*types.People, error)
|
|
}
|
|
type EvidenceResolver interface {
|
|
FileURL(ctx context.Context, obj *types.Evidence) (*string, error)
|
|
|
|
Task(ctx context.Context, obj *types.Evidence) (*types.Task, error)
|
|
Measure(ctx context.Context, obj *types.Evidence) (*types.Measure, error)
|
|
}
|
|
type EvidenceConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.EvidenceConnection) (int, error)
|
|
}
|
|
type FrameworkResolver interface {
|
|
Organization(ctx context.Context, obj *types.Framework) (*types.Organization, error)
|
|
Controls(ctx context.Context, obj *types.Framework, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, error)
|
|
}
|
|
type FrameworkConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.FrameworkConnection) (int, error)
|
|
}
|
|
type MeasureResolver interface {
|
|
Evidences(ctx context.Context, obj *types.Measure, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.EvidenceOrderBy) (*types.EvidenceConnection, error)
|
|
Tasks(ctx context.Context, obj *types.Measure, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.TaskOrderBy) (*types.TaskConnection, error)
|
|
Risks(ctx context.Context, obj *types.Measure, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RiskOrderBy, filter *types.RiskFilter) (*types.RiskConnection, error)
|
|
Controls(ctx context.Context, obj *types.Measure, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, error)
|
|
}
|
|
type MeasureConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.MeasureConnection) (int, 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)
|
|
UpdateTrustCenter(ctx context.Context, input types.UpdateTrustCenterInput) (*types.UpdateTrustCenterPayload, error)
|
|
CreateTrustCenterAccess(ctx context.Context, input types.CreateTrustCenterAccessInput) (*types.CreateTrustCenterAccessPayload, error)
|
|
UpdateTrustCenterAccess(ctx context.Context, input types.UpdateTrustCenterAccessInput) (*types.UpdateTrustCenterAccessPayload, error)
|
|
DeleteTrustCenterAccess(ctx context.Context, input types.DeleteTrustCenterAccessInput) (*types.DeleteTrustCenterAccessPayload, 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)
|
|
CreateVendorContact(ctx context.Context, input types.CreateVendorContactInput) (*types.CreateVendorContactPayload, error)
|
|
UpdateVendorContact(ctx context.Context, input types.UpdateVendorContactInput) (*types.UpdateVendorContactPayload, error)
|
|
DeleteVendorContact(ctx context.Context, input types.DeleteVendorContactInput) (*types.DeleteVendorContactPayload, error)
|
|
CreateVendorService(ctx context.Context, input types.CreateVendorServiceInput) (*types.CreateVendorServicePayload, error)
|
|
UpdateVendorService(ctx context.Context, input types.UpdateVendorServiceInput) (*types.UpdateVendorServicePayload, error)
|
|
DeleteVendorService(ctx context.Context, input types.DeleteVendorServiceInput) (*types.DeleteVendorServicePayload, 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)
|
|
GenerateFrameworkStateOfApplicability(ctx context.Context, input types.GenerateFrameworkStateOfApplicabilityInput) (*types.GenerateFrameworkStateOfApplicabilityPayload, error)
|
|
CreateControl(ctx context.Context, input types.CreateControlInput) (*types.CreateControlPayload, error)
|
|
UpdateControl(ctx context.Context, input types.UpdateControlInput) (*types.UpdateControlPayload, error)
|
|
DeleteControl(ctx context.Context, input types.DeleteControlInput) (*types.DeleteControlPayload, error)
|
|
CreateMeasure(ctx context.Context, input types.CreateMeasureInput) (*types.CreateMeasurePayload, error)
|
|
UpdateMeasure(ctx context.Context, input types.UpdateMeasureInput) (*types.UpdateMeasurePayload, error)
|
|
ImportMeasure(ctx context.Context, input types.ImportMeasureInput) (*types.ImportMeasurePayload, error)
|
|
DeleteMeasure(ctx context.Context, input types.DeleteMeasureInput) (*types.DeleteMeasurePayload, error)
|
|
CreateControlMeasureMapping(ctx context.Context, input types.CreateControlMeasureMappingInput) (*types.CreateControlMeasureMappingPayload, error)
|
|
CreateControlDocumentMapping(ctx context.Context, input types.CreateControlDocumentMappingInput) (*types.CreateControlDocumentMappingPayload, error)
|
|
DeleteControlMeasureMapping(ctx context.Context, input types.DeleteControlMeasureMappingInput) (*types.DeleteControlMeasureMappingPayload, error)
|
|
DeleteControlDocumentMapping(ctx context.Context, input types.DeleteControlDocumentMappingInput) (*types.DeleteControlDocumentMappingPayload, error)
|
|
CreateControlAuditMapping(ctx context.Context, input types.CreateControlAuditMappingInput) (*types.CreateControlAuditMappingPayload, error)
|
|
DeleteControlAuditMapping(ctx context.Context, input types.DeleteControlAuditMappingInput) (*types.DeleteControlAuditMappingPayload, error)
|
|
CreateControlSnapshotMapping(ctx context.Context, input types.CreateControlSnapshotMappingInput) (*types.CreateControlSnapshotMappingPayload, error)
|
|
DeleteControlSnapshotMapping(ctx context.Context, input types.DeleteControlSnapshotMappingInput) (*types.DeleteControlSnapshotMappingPayload, 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)
|
|
CreateRiskMeasureMapping(ctx context.Context, input types.CreateRiskMeasureMappingInput) (*types.CreateRiskMeasureMappingPayload, error)
|
|
DeleteRiskMeasureMapping(ctx context.Context, input types.DeleteRiskMeasureMappingInput) (*types.DeleteRiskMeasureMappingPayload, error)
|
|
CreateRiskDocumentMapping(ctx context.Context, input types.CreateRiskDocumentMappingInput) (*types.CreateRiskDocumentMappingPayload, error)
|
|
DeleteRiskDocumentMapping(ctx context.Context, input types.DeleteRiskDocumentMappingInput) (*types.DeleteRiskDocumentMappingPayload, error)
|
|
RequestEvidence(ctx context.Context, input types.RequestEvidenceInput) (*types.RequestEvidencePayload, error)
|
|
FulfillEvidence(ctx context.Context, input types.FulfillEvidenceInput) (*types.FulfillEvidencePayload, error)
|
|
DeleteEvidence(ctx context.Context, input types.DeleteEvidenceInput) (*types.DeleteEvidencePayload, error)
|
|
UploadTaskEvidence(ctx context.Context, input types.UploadTaskEvidenceInput) (*types.UploadTaskEvidencePayload, error)
|
|
UploadMeasureEvidence(ctx context.Context, input types.UploadMeasureEvidenceInput) (*types.UploadMeasureEvidencePayload, error)
|
|
UploadVendorComplianceReport(ctx context.Context, input types.UploadVendorComplianceReportInput) (*types.UploadVendorComplianceReportPayload, error)
|
|
DeleteVendorComplianceReport(ctx context.Context, input types.DeleteVendorComplianceReportInput) (*types.DeleteVendorComplianceReportPayload, error)
|
|
UploadVendorBusinessAssociateAgreement(ctx context.Context, input types.UploadVendorBusinessAssociateAgreementInput) (*types.UploadVendorBusinessAssociateAgreementPayload, error)
|
|
UpdateVendorBusinessAssociateAgreement(ctx context.Context, input types.UpdateVendorBusinessAssociateAgreementInput) (*types.UpdateVendorBusinessAssociateAgreementPayload, error)
|
|
DeleteVendorBusinessAssociateAgreement(ctx context.Context, input types.DeleteVendorBusinessAssociateAgreementInput) (*types.DeleteVendorBusinessAssociateAgreementPayload, error)
|
|
UploadVendorDataPrivacyAgreement(ctx context.Context, input types.UploadVendorDataPrivacyAgreementInput) (*types.UploadVendorDataPrivacyAgreementPayload, error)
|
|
UpdateVendorDataPrivacyAgreement(ctx context.Context, input types.UpdateVendorDataPrivacyAgreementInput) (*types.UpdateVendorDataPrivacyAgreementPayload, error)
|
|
DeleteVendorDataPrivacyAgreement(ctx context.Context, input types.DeleteVendorDataPrivacyAgreementInput) (*types.DeleteVendorDataPrivacyAgreementPayload, error)
|
|
CreateDocument(ctx context.Context, input types.CreateDocumentInput) (*types.CreateDocumentPayload, error)
|
|
UpdateDocument(ctx context.Context, input types.UpdateDocumentInput) (*types.UpdateDocumentPayload, error)
|
|
DeleteDocument(ctx context.Context, input types.DeleteDocumentInput) (*types.DeleteDocumentPayload, error)
|
|
PublishDocumentVersion(ctx context.Context, input types.PublishDocumentVersionInput) (*types.PublishDocumentVersionPayload, error)
|
|
BulkPublishDocumentVersions(ctx context.Context, input types.BulkPublishDocumentVersionsInput) (*types.BulkPublishDocumentVersionsPayload, error)
|
|
GenerateDocumentChangelog(ctx context.Context, input types.GenerateDocumentChangelogInput) (*types.GenerateDocumentChangelogPayload, error)
|
|
CreateDraftDocumentVersion(ctx context.Context, input types.CreateDraftDocumentVersionInput) (*types.CreateDraftDocumentVersionPayload, error)
|
|
DeleteDraftDocumentVersion(ctx context.Context, input types.DeleteDraftDocumentVersionInput) (*types.DeleteDraftDocumentVersionPayload, error)
|
|
UpdateDocumentVersion(ctx context.Context, input types.UpdateDocumentVersionInput) (*types.UpdateDocumentVersionPayload, error)
|
|
RequestSignature(ctx context.Context, input types.RequestSignatureInput) (*types.RequestSignaturePayload, error)
|
|
BulkRequestSignatures(ctx context.Context, input types.BulkRequestSignaturesInput) (*types.BulkRequestSignaturesPayload, error)
|
|
SendSigningNotifications(ctx context.Context, input types.SendSigningNotificationsInput) (*types.SendSigningNotificationsPayload, error)
|
|
CancelSignatureRequest(ctx context.Context, input types.CancelSignatureRequestInput) (*types.CancelSignatureRequestPayload, error)
|
|
ExportDocumentVersionPDF(ctx context.Context, input types.ExportDocumentVersionPDFInput) (*types.ExportDocumentVersionPDFPayload, error)
|
|
CreateVendorRiskAssessment(ctx context.Context, input types.CreateVendorRiskAssessmentInput) (*types.CreateVendorRiskAssessmentPayload, error)
|
|
AssessVendor(ctx context.Context, input types.AssessVendorInput) (*types.AssessVendorPayload, error)
|
|
CreateAsset(ctx context.Context, input types.CreateAssetInput) (*types.CreateAssetPayload, error)
|
|
UpdateAsset(ctx context.Context, input types.UpdateAssetInput) (*types.UpdateAssetPayload, error)
|
|
DeleteAsset(ctx context.Context, input types.DeleteAssetInput) (*types.DeleteAssetPayload, error)
|
|
CreateDatum(ctx context.Context, input types.CreateDatumInput) (*types.CreateDatumPayload, error)
|
|
UpdateDatum(ctx context.Context, input types.UpdateDatumInput) (*types.UpdateDatumPayload, error)
|
|
DeleteDatum(ctx context.Context, input types.DeleteDatumInput) (*types.DeleteDatumPayload, error)
|
|
CreateAudit(ctx context.Context, input types.CreateAuditInput) (*types.CreateAuditPayload, error)
|
|
UpdateAudit(ctx context.Context, input types.UpdateAuditInput) (*types.UpdateAuditPayload, error)
|
|
DeleteAudit(ctx context.Context, input types.DeleteAuditInput) (*types.DeleteAuditPayload, error)
|
|
UploadAuditReport(ctx context.Context, input types.UploadAuditReportInput) (*types.UploadAuditReportPayload, error)
|
|
DeleteAuditReport(ctx context.Context, input types.DeleteAuditReportInput) (*types.DeleteAuditReportPayload, error)
|
|
CreateNonconformityRegistry(ctx context.Context, input types.CreateNonconformityRegistryInput) (*types.CreateNonconformityRegistryPayload, error)
|
|
UpdateNonconformityRegistry(ctx context.Context, input types.UpdateNonconformityRegistryInput) (*types.UpdateNonconformityRegistryPayload, error)
|
|
DeleteNonconformityRegistry(ctx context.Context, input types.DeleteNonconformityRegistryInput) (*types.DeleteNonconformityRegistryPayload, error)
|
|
CreateComplianceRegistry(ctx context.Context, input types.CreateComplianceRegistryInput) (*types.CreateComplianceRegistryPayload, error)
|
|
UpdateComplianceRegistry(ctx context.Context, input types.UpdateComplianceRegistryInput) (*types.UpdateComplianceRegistryPayload, error)
|
|
DeleteComplianceRegistry(ctx context.Context, input types.DeleteComplianceRegistryInput) (*types.DeleteComplianceRegistryPayload, error)
|
|
CreateContinualImprovementRegistry(ctx context.Context, input types.CreateContinualImprovementRegistryInput) (*types.CreateContinualImprovementRegistryPayload, error)
|
|
UpdateContinualImprovementRegistry(ctx context.Context, input types.UpdateContinualImprovementRegistryInput) (*types.UpdateContinualImprovementRegistryPayload, error)
|
|
DeleteContinualImprovementRegistry(ctx context.Context, input types.DeleteContinualImprovementRegistryInput) (*types.DeleteContinualImprovementRegistryPayload, error)
|
|
CreateProcessingActivityRegistry(ctx context.Context, input types.CreateProcessingActivityRegistryInput) (*types.CreateProcessingActivityRegistryPayload, error)
|
|
UpdateProcessingActivityRegistry(ctx context.Context, input types.UpdateProcessingActivityRegistryInput) (*types.UpdateProcessingActivityRegistryPayload, error)
|
|
DeleteProcessingActivityRegistry(ctx context.Context, input types.DeleteProcessingActivityRegistryInput) (*types.DeleteProcessingActivityRegistryPayload, error)
|
|
CreateSnapshot(ctx context.Context, input types.CreateSnapshotInput) (*types.CreateSnapshotPayload, error)
|
|
DeleteSnapshot(ctx context.Context, input types.DeleteSnapshotInput) (*types.DeleteSnapshotPayload, error)
|
|
}
|
|
type NonconformityRegistryResolver interface {
|
|
Organization(ctx context.Context, obj *types.NonconformityRegistry) (*types.Organization, error)
|
|
|
|
Audit(ctx context.Context, obj *types.NonconformityRegistry) (*types.Audit, error)
|
|
|
|
Owner(ctx context.Context, obj *types.NonconformityRegistry) (*types.People, error)
|
|
}
|
|
type NonconformityRegistryConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.NonconformityRegistryConnection) (int, 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)
|
|
Controls(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, 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, filter *types.PeopleFilter) (*types.PeopleConnection, error)
|
|
Documents(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy, filter *types.DocumentFilter) (*types.DocumentConnection, error)
|
|
Measures(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeasureOrderBy, filter *types.MeasureFilter) (*types.MeasureConnection, error)
|
|
Risks(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RiskOrderBy, filter *types.RiskFilter) (*types.RiskConnection, error)
|
|
Tasks(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.TaskOrderBy) (*types.TaskConnection, error)
|
|
Assets(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.AssetOrderBy, filter *types.AssetFilter) (*types.AssetConnection, error)
|
|
Data(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DatumOrderBy, filter *types.DatumFilter) (*types.DatumConnection, error)
|
|
Audits(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.AuditOrderBy) (*types.AuditConnection, error)
|
|
NonconformityRegistries(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.NonconformityRegistryOrderBy, filter *types.NonconformityRegistryFilter) (*types.NonconformityRegistryConnection, error)
|
|
ComplianceRegistries(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ComplianceRegistryOrderBy, filter *types.ComplianceRegistryFilter) (*types.ComplianceRegistryConnection, error)
|
|
ContinualImprovementRegistries(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ContinualImprovementRegistriesOrderBy, filter *types.ContinualImprovementRegistryFilter) (*types.ContinualImprovementRegistryConnection, error)
|
|
ProcessingActivityRegistries(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProcessingActivityRegistryOrderBy, filter *types.ProcessingActivityRegistryFilter) (*types.ProcessingActivityRegistryConnection, error)
|
|
Snapshots(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SnapshotOrderBy) (*types.SnapshotConnection, error)
|
|
TrustCenter(ctx context.Context, obj *types.Organization) (*types.TrustCenter, error)
|
|
}
|
|
type PeopleConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.PeopleConnection) (int, error)
|
|
}
|
|
type ProcessingActivityRegistryResolver interface {
|
|
Organization(ctx context.Context, obj *types.ProcessingActivityRegistry) (*types.Organization, error)
|
|
}
|
|
type ProcessingActivityRegistryConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.ProcessingActivityRegistryConnection) (int, error)
|
|
}
|
|
type QueryResolver interface {
|
|
Node(ctx context.Context, id gid.GID) (types.Node, error)
|
|
Viewer(ctx context.Context) (*types.Viewer, error)
|
|
}
|
|
type ReportResolver interface {
|
|
DownloadURL(ctx context.Context, obj *types.Report) (*string, error)
|
|
}
|
|
type RiskResolver interface {
|
|
Owner(ctx context.Context, obj *types.Risk) (*types.People, error)
|
|
Organization(ctx context.Context, obj *types.Risk) (*types.Organization, error)
|
|
Measures(ctx context.Context, obj *types.Risk, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeasureOrderBy, filter *types.MeasureFilter) (*types.MeasureConnection, error)
|
|
Documents(ctx context.Context, obj *types.Risk, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy, filter *types.DocumentFilter) (*types.DocumentConnection, error)
|
|
Controls(ctx context.Context, obj *types.Risk, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, error)
|
|
}
|
|
type RiskConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.RiskConnection) (int, error)
|
|
}
|
|
type SnapshotResolver interface {
|
|
Organization(ctx context.Context, obj *types.Snapshot) (*types.Organization, error)
|
|
|
|
Controls(ctx context.Context, obj *types.Snapshot, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, error)
|
|
}
|
|
type SnapshotConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.SnapshotConnection) (int, error)
|
|
}
|
|
type TaskResolver interface {
|
|
AssignedTo(ctx context.Context, obj *types.Task) (*types.People, error)
|
|
Organization(ctx context.Context, obj *types.Task) (*types.Organization, error)
|
|
Measure(ctx context.Context, obj *types.Task) (*types.Measure, 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 TaskConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.TaskConnection) (int, error)
|
|
}
|
|
type TrustCenterResolver interface {
|
|
Organization(ctx context.Context, obj *types.TrustCenter) (*types.Organization, error)
|
|
Accesses(ctx context.Context, obj *types.TrustCenter, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.TrustCenterAccessOrderField]) (*types.TrustCenterAccessConnection, error)
|
|
}
|
|
type UserResolver interface {
|
|
People(ctx context.Context, obj *types.User, organizationID gid.GID) (*types.People, error)
|
|
}
|
|
type VendorResolver interface {
|
|
Organization(ctx context.Context, obj *types.Vendor) (*types.Organization, error)
|
|
ComplianceReports(ctx context.Context, obj *types.Vendor, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorComplianceReportOrderBy) (*types.VendorComplianceReportConnection, error)
|
|
BusinessAssociateAgreement(ctx context.Context, obj *types.Vendor) (*types.VendorBusinessAssociateAgreement, error)
|
|
DataPrivacyAgreement(ctx context.Context, obj *types.Vendor) (*types.VendorDataPrivacyAgreement, error)
|
|
Contacts(ctx context.Context, obj *types.Vendor, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorContactOrderBy) (*types.VendorContactConnection, error)
|
|
Services(ctx context.Context, obj *types.Vendor, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorServiceOrderBy) (*types.VendorServiceConnection, 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 VendorBusinessAssociateAgreementResolver interface {
|
|
Vendor(ctx context.Context, obj *types.VendorBusinessAssociateAgreement) (*types.Vendor, error)
|
|
|
|
FileURL(ctx context.Context, obj *types.VendorBusinessAssociateAgreement) (string, error)
|
|
}
|
|
type VendorComplianceReportResolver interface {
|
|
Vendor(ctx context.Context, obj *types.VendorComplianceReport) (*types.Vendor, error)
|
|
|
|
FileURL(ctx context.Context, obj *types.VendorComplianceReport) (string, error)
|
|
}
|
|
type VendorConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.VendorConnection) (int, error)
|
|
}
|
|
type VendorContactResolver interface {
|
|
Vendor(ctx context.Context, obj *types.VendorContact) (*types.Vendor, error)
|
|
}
|
|
type VendorDataPrivacyAgreementResolver interface {
|
|
Vendor(ctx context.Context, obj *types.VendorDataPrivacyAgreement) (*types.Vendor, error)
|
|
|
|
FileURL(ctx context.Context, obj *types.VendorDataPrivacyAgreement) (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 VendorServiceResolver interface {
|
|
Vendor(ctx context.Context, obj *types.VendorService) (*types.Vendor, error)
|
|
}
|
|
type ViewerResolver interface {
|
|
Organizations(ctx context.Context, obj *types.Viewer, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrganizationOrder, filter *types.OrganizationFilter) (*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(ctx context.Context, typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) {
|
|
ec := executionContext{nil, e, 0, 0, nil}
|
|
_ = ec
|
|
switch typeName + "." + field {
|
|
|
|
case "AssessVendorPayload.vendor":
|
|
if e.complexity.AssessVendorPayload.Vendor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.AssessVendorPayload.Vendor(childComplexity), true
|
|
|
|
case "Asset.amount":
|
|
if e.complexity.Asset.Amount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Asset.Amount(childComplexity), true
|
|
|
|
case "Asset.assetType":
|
|
if e.complexity.Asset.AssetType == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Asset.AssetType(childComplexity), true
|
|
|
|
case "Asset.createdAt":
|
|
if e.complexity.Asset.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Asset.CreatedAt(childComplexity), true
|
|
|
|
case "Asset.criticity":
|
|
if e.complexity.Asset.Criticity == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Asset.Criticity(childComplexity), true
|
|
|
|
case "Asset.dataTypesStored":
|
|
if e.complexity.Asset.DataTypesStored == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Asset.DataTypesStored(childComplexity), true
|
|
|
|
case "Asset.id":
|
|
if e.complexity.Asset.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Asset.ID(childComplexity), true
|
|
|
|
case "Asset.name":
|
|
if e.complexity.Asset.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Asset.Name(childComplexity), true
|
|
|
|
case "Asset.organization":
|
|
if e.complexity.Asset.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Asset.Organization(childComplexity), true
|
|
|
|
case "Asset.owner":
|
|
if e.complexity.Asset.Owner == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Asset.Owner(childComplexity), true
|
|
|
|
case "Asset.snapshotId":
|
|
if e.complexity.Asset.SnapshotID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Asset.SnapshotID(childComplexity), true
|
|
|
|
case "Asset.updatedAt":
|
|
if e.complexity.Asset.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Asset.UpdatedAt(childComplexity), true
|
|
|
|
case "Asset.vendors":
|
|
if e.complexity.Asset.Vendors == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Asset_vendors_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Asset.Vendors(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorOrderBy)), true
|
|
|
|
case "AssetConnection.edges":
|
|
if e.complexity.AssetConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.AssetConnection.Edges(childComplexity), true
|
|
|
|
case "AssetConnection.pageInfo":
|
|
if e.complexity.AssetConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.AssetConnection.PageInfo(childComplexity), true
|
|
|
|
case "AssetConnection.totalCount":
|
|
if e.complexity.AssetConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.AssetConnection.TotalCount(childComplexity), true
|
|
|
|
case "AssetEdge.cursor":
|
|
if e.complexity.AssetEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.AssetEdge.Cursor(childComplexity), true
|
|
|
|
case "AssetEdge.node":
|
|
if e.complexity.AssetEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.AssetEdge.Node(childComplexity), true
|
|
|
|
case "AssignTaskPayload.task":
|
|
if e.complexity.AssignTaskPayload.Task == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.AssignTaskPayload.Task(childComplexity), true
|
|
|
|
case "Audit.controls":
|
|
if e.complexity.Audit.Controls == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Audit_controls_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Audit.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy), args["filter"].(*types.ControlFilter)), true
|
|
|
|
case "Audit.createdAt":
|
|
if e.complexity.Audit.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Audit.CreatedAt(childComplexity), true
|
|
|
|
case "Audit.framework":
|
|
if e.complexity.Audit.Framework == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Audit.Framework(childComplexity), true
|
|
|
|
case "Audit.id":
|
|
if e.complexity.Audit.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Audit.ID(childComplexity), true
|
|
|
|
case "Audit.name":
|
|
if e.complexity.Audit.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Audit.Name(childComplexity), true
|
|
|
|
case "Audit.organization":
|
|
if e.complexity.Audit.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Audit.Organization(childComplexity), true
|
|
|
|
case "Audit.report":
|
|
if e.complexity.Audit.Report == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Audit.Report(childComplexity), true
|
|
|
|
case "Audit.reportUrl":
|
|
if e.complexity.Audit.ReportURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Audit.ReportURL(childComplexity), true
|
|
|
|
case "Audit.showOnTrustCenter":
|
|
if e.complexity.Audit.ShowOnTrustCenter == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Audit.ShowOnTrustCenter(childComplexity), true
|
|
|
|
case "Audit.state":
|
|
if e.complexity.Audit.State == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Audit.State(childComplexity), true
|
|
|
|
case "Audit.updatedAt":
|
|
if e.complexity.Audit.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Audit.UpdatedAt(childComplexity), true
|
|
|
|
case "Audit.validFrom":
|
|
if e.complexity.Audit.ValidFrom == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Audit.ValidFrom(childComplexity), true
|
|
|
|
case "Audit.validUntil":
|
|
if e.complexity.Audit.ValidUntil == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Audit.ValidUntil(childComplexity), true
|
|
|
|
case "AuditConnection.edges":
|
|
if e.complexity.AuditConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.AuditConnection.Edges(childComplexity), true
|
|
|
|
case "AuditConnection.pageInfo":
|
|
if e.complexity.AuditConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.AuditConnection.PageInfo(childComplexity), true
|
|
|
|
case "AuditConnection.totalCount":
|
|
if e.complexity.AuditConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.AuditConnection.TotalCount(childComplexity), true
|
|
|
|
case "AuditEdge.cursor":
|
|
if e.complexity.AuditEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.AuditEdge.Cursor(childComplexity), true
|
|
|
|
case "AuditEdge.node":
|
|
if e.complexity.AuditEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.AuditEdge.Node(childComplexity), true
|
|
|
|
case "BulkPublishDocumentVersionsPayload.documentEdges":
|
|
if e.complexity.BulkPublishDocumentVersionsPayload.DocumentEdges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.BulkPublishDocumentVersionsPayload.DocumentEdges(childComplexity), true
|
|
|
|
case "BulkPublishDocumentVersionsPayload.documentVersionEdges":
|
|
if e.complexity.BulkPublishDocumentVersionsPayload.DocumentVersionEdges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.BulkPublishDocumentVersionsPayload.DocumentVersionEdges(childComplexity), true
|
|
|
|
case "BulkRequestSignaturesPayload.documentVersionSignatureEdges":
|
|
if e.complexity.BulkRequestSignaturesPayload.DocumentVersionSignatureEdges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.BulkRequestSignaturesPayload.DocumentVersionSignatureEdges(childComplexity), true
|
|
|
|
case "CancelSignatureRequestPayload.deletedDocumentVersionSignatureId":
|
|
if e.complexity.CancelSignatureRequestPayload.DeletedDocumentVersionSignatureID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CancelSignatureRequestPayload.DeletedDocumentVersionSignatureID(childComplexity), true
|
|
|
|
case "ComplianceRegistry.actionsToBeImplemented":
|
|
if e.complexity.ComplianceRegistry.ActionsToBeImplemented == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.ActionsToBeImplemented(childComplexity), true
|
|
|
|
case "ComplianceRegistry.area":
|
|
if e.complexity.ComplianceRegistry.Area == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.Area(childComplexity), true
|
|
|
|
case "ComplianceRegistry.createdAt":
|
|
if e.complexity.ComplianceRegistry.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.CreatedAt(childComplexity), true
|
|
|
|
case "ComplianceRegistry.dueDate":
|
|
if e.complexity.ComplianceRegistry.DueDate == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.DueDate(childComplexity), true
|
|
|
|
case "ComplianceRegistry.id":
|
|
if e.complexity.ComplianceRegistry.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.ID(childComplexity), true
|
|
|
|
case "ComplianceRegistry.lastReviewDate":
|
|
if e.complexity.ComplianceRegistry.LastReviewDate == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.LastReviewDate(childComplexity), true
|
|
|
|
case "ComplianceRegistry.organization":
|
|
if e.complexity.ComplianceRegistry.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.Organization(childComplexity), true
|
|
|
|
case "ComplianceRegistry.owner":
|
|
if e.complexity.ComplianceRegistry.Owner == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.Owner(childComplexity), true
|
|
|
|
case "ComplianceRegistry.referenceId":
|
|
if e.complexity.ComplianceRegistry.ReferenceID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.ReferenceID(childComplexity), true
|
|
|
|
case "ComplianceRegistry.regulator":
|
|
if e.complexity.ComplianceRegistry.Regulator == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.Regulator(childComplexity), true
|
|
|
|
case "ComplianceRegistry.requirement":
|
|
if e.complexity.ComplianceRegistry.Requirement == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.Requirement(childComplexity), true
|
|
|
|
case "ComplianceRegistry.snapshotId":
|
|
if e.complexity.ComplianceRegistry.SnapshotID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.SnapshotID(childComplexity), true
|
|
|
|
case "ComplianceRegistry.source":
|
|
if e.complexity.ComplianceRegistry.Source == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.Source(childComplexity), true
|
|
|
|
case "ComplianceRegistry.sourceId":
|
|
if e.complexity.ComplianceRegistry.SourceID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.SourceID(childComplexity), true
|
|
|
|
case "ComplianceRegistry.status":
|
|
if e.complexity.ComplianceRegistry.Status == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.Status(childComplexity), true
|
|
|
|
case "ComplianceRegistry.updatedAt":
|
|
if e.complexity.ComplianceRegistry.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistry.UpdatedAt(childComplexity), true
|
|
|
|
case "ComplianceRegistryConnection.edges":
|
|
if e.complexity.ComplianceRegistryConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistryConnection.Edges(childComplexity), true
|
|
|
|
case "ComplianceRegistryConnection.pageInfo":
|
|
if e.complexity.ComplianceRegistryConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistryConnection.PageInfo(childComplexity), true
|
|
|
|
case "ComplianceRegistryConnection.totalCount":
|
|
if e.complexity.ComplianceRegistryConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistryConnection.TotalCount(childComplexity), true
|
|
|
|
case "ComplianceRegistryEdge.cursor":
|
|
if e.complexity.ComplianceRegistryEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistryEdge.Cursor(childComplexity), true
|
|
|
|
case "ComplianceRegistryEdge.node":
|
|
if e.complexity.ComplianceRegistryEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ComplianceRegistryEdge.Node(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 "ContinualImprovementRegistry.createdAt":
|
|
if e.complexity.ContinualImprovementRegistry.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistry.CreatedAt(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistry.description":
|
|
if e.complexity.ContinualImprovementRegistry.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistry.Description(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistry.id":
|
|
if e.complexity.ContinualImprovementRegistry.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistry.ID(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistry.organization":
|
|
if e.complexity.ContinualImprovementRegistry.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistry.Organization(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistry.owner":
|
|
if e.complexity.ContinualImprovementRegistry.Owner == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistry.Owner(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistry.priority":
|
|
if e.complexity.ContinualImprovementRegistry.Priority == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistry.Priority(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistry.referenceId":
|
|
if e.complexity.ContinualImprovementRegistry.ReferenceID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistry.ReferenceID(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistry.snapshotId":
|
|
if e.complexity.ContinualImprovementRegistry.SnapshotID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistry.SnapshotID(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistry.source":
|
|
if e.complexity.ContinualImprovementRegistry.Source == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistry.Source(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistry.sourceId":
|
|
if e.complexity.ContinualImprovementRegistry.SourceID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistry.SourceID(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistry.status":
|
|
if e.complexity.ContinualImprovementRegistry.Status == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistry.Status(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistry.targetDate":
|
|
if e.complexity.ContinualImprovementRegistry.TargetDate == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistry.TargetDate(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistry.updatedAt":
|
|
if e.complexity.ContinualImprovementRegistry.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistry.UpdatedAt(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistryConnection.edges":
|
|
if e.complexity.ContinualImprovementRegistryConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistryConnection.Edges(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistryConnection.pageInfo":
|
|
if e.complexity.ContinualImprovementRegistryConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistryConnection.PageInfo(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistryConnection.totalCount":
|
|
if e.complexity.ContinualImprovementRegistryConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistryConnection.TotalCount(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistryEdge.cursor":
|
|
if e.complexity.ContinualImprovementRegistryEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistryEdge.Cursor(childComplexity), true
|
|
|
|
case "ContinualImprovementRegistryEdge.node":
|
|
if e.complexity.ContinualImprovementRegistryEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ContinualImprovementRegistryEdge.Node(childComplexity), true
|
|
|
|
case "Control.audits":
|
|
if e.complexity.Control.Audits == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Control_audits_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Control.Audits(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.AuditOrderBy)), 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.documents":
|
|
if e.complexity.Control.Documents == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Control_documents_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Control.Documents(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DocumentOrderBy), args["filter"].(*types.DocumentFilter)), true
|
|
|
|
case "Control.exclusionJustification":
|
|
if e.complexity.Control.ExclusionJustification == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Control.ExclusionJustification(childComplexity), true
|
|
|
|
case "Control.framework":
|
|
if e.complexity.Control.Framework == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Control.Framework(childComplexity), true
|
|
|
|
case "Control.id":
|
|
if e.complexity.Control.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Control.ID(childComplexity), true
|
|
|
|
case "Control.measures":
|
|
if e.complexity.Control.Measures == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Control_measures_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Control.Measures(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.MeasureOrderBy), args["filter"].(*types.MeasureFilter)), true
|
|
|
|
case "Control.name":
|
|
if e.complexity.Control.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Control.Name(childComplexity), true
|
|
|
|
case "Control.sectionTitle":
|
|
if e.complexity.Control.SectionTitle == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Control.SectionTitle(childComplexity), true
|
|
|
|
case "Control.snapshots":
|
|
if e.complexity.Control.Snapshots == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Control_snapshots_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Control.Snapshots(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.SnapshotOrderBy)), true
|
|
|
|
case "Control.status":
|
|
if e.complexity.Control.Status == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Control.Status(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 "ControlConnection.totalCount":
|
|
if e.complexity.ControlConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ControlConnection.TotalCount(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 "CreateAssetPayload.assetEdge":
|
|
if e.complexity.CreateAssetPayload.AssetEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateAssetPayload.AssetEdge(childComplexity), true
|
|
|
|
case "CreateAuditPayload.auditEdge":
|
|
if e.complexity.CreateAuditPayload.AuditEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateAuditPayload.AuditEdge(childComplexity), true
|
|
|
|
case "CreateComplianceRegistryPayload.complianceRegistryEdge":
|
|
if e.complexity.CreateComplianceRegistryPayload.ComplianceRegistryEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateComplianceRegistryPayload.ComplianceRegistryEdge(childComplexity), true
|
|
|
|
case "CreateContinualImprovementRegistryPayload.continualImprovementRegistryEdge":
|
|
if e.complexity.CreateContinualImprovementRegistryPayload.ContinualImprovementRegistryEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateContinualImprovementRegistryPayload.ContinualImprovementRegistryEdge(childComplexity), true
|
|
|
|
case "CreateControlAuditMappingPayload.auditEdge":
|
|
if e.complexity.CreateControlAuditMappingPayload.AuditEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateControlAuditMappingPayload.AuditEdge(childComplexity), true
|
|
|
|
case "CreateControlAuditMappingPayload.controlEdge":
|
|
if e.complexity.CreateControlAuditMappingPayload.ControlEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateControlAuditMappingPayload.ControlEdge(childComplexity), true
|
|
|
|
case "CreateControlDocumentMappingPayload.controlEdge":
|
|
if e.complexity.CreateControlDocumentMappingPayload.ControlEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateControlDocumentMappingPayload.ControlEdge(childComplexity), true
|
|
|
|
case "CreateControlDocumentMappingPayload.documentEdge":
|
|
if e.complexity.CreateControlDocumentMappingPayload.DocumentEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateControlDocumentMappingPayload.DocumentEdge(childComplexity), true
|
|
|
|
case "CreateControlMeasureMappingPayload.controlEdge":
|
|
if e.complexity.CreateControlMeasureMappingPayload.ControlEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateControlMeasureMappingPayload.ControlEdge(childComplexity), true
|
|
|
|
case "CreateControlMeasureMappingPayload.measureEdge":
|
|
if e.complexity.CreateControlMeasureMappingPayload.MeasureEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateControlMeasureMappingPayload.MeasureEdge(childComplexity), true
|
|
|
|
case "CreateControlPayload.controlEdge":
|
|
if e.complexity.CreateControlPayload.ControlEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateControlPayload.ControlEdge(childComplexity), true
|
|
|
|
case "CreateControlSnapshotMappingPayload.controlEdge":
|
|
if e.complexity.CreateControlSnapshotMappingPayload.ControlEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateControlSnapshotMappingPayload.ControlEdge(childComplexity), true
|
|
|
|
case "CreateControlSnapshotMappingPayload.snapshotEdge":
|
|
if e.complexity.CreateControlSnapshotMappingPayload.SnapshotEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateControlSnapshotMappingPayload.SnapshotEdge(childComplexity), true
|
|
|
|
case "CreateDatumPayload.datumEdge":
|
|
if e.complexity.CreateDatumPayload.DatumEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateDatumPayload.DatumEdge(childComplexity), true
|
|
|
|
case "CreateDocumentPayload.documentEdge":
|
|
if e.complexity.CreateDocumentPayload.DocumentEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateDocumentPayload.DocumentEdge(childComplexity), true
|
|
|
|
case "CreateDocumentPayload.documentVersionEdge":
|
|
if e.complexity.CreateDocumentPayload.DocumentVersionEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateDocumentPayload.DocumentVersionEdge(childComplexity), true
|
|
|
|
case "CreateDraftDocumentVersionPayload.documentVersionEdge":
|
|
if e.complexity.CreateDraftDocumentVersionPayload.DocumentVersionEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateDraftDocumentVersionPayload.DocumentVersionEdge(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 "CreateMeasurePayload.measureEdge":
|
|
if e.complexity.CreateMeasurePayload.MeasureEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateMeasurePayload.MeasureEdge(childComplexity), true
|
|
|
|
case "CreateNonconformityRegistryPayload.nonconformityRegistryEdge":
|
|
if e.complexity.CreateNonconformityRegistryPayload.NonconformityRegistryEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateNonconformityRegistryPayload.NonconformityRegistryEdge(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 "CreateProcessingActivityRegistryPayload.processingActivityRegistryEdge":
|
|
if e.complexity.CreateProcessingActivityRegistryPayload.ProcessingActivityRegistryEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateProcessingActivityRegistryPayload.ProcessingActivityRegistryEdge(childComplexity), true
|
|
|
|
case "CreateRiskDocumentMappingPayload.documentEdge":
|
|
if e.complexity.CreateRiskDocumentMappingPayload.DocumentEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateRiskDocumentMappingPayload.DocumentEdge(childComplexity), true
|
|
|
|
case "CreateRiskDocumentMappingPayload.riskEdge":
|
|
if e.complexity.CreateRiskDocumentMappingPayload.RiskEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateRiskDocumentMappingPayload.RiskEdge(childComplexity), true
|
|
|
|
case "CreateRiskMeasureMappingPayload.measureEdge":
|
|
if e.complexity.CreateRiskMeasureMappingPayload.MeasureEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateRiskMeasureMappingPayload.MeasureEdge(childComplexity), true
|
|
|
|
case "CreateRiskMeasureMappingPayload.riskEdge":
|
|
if e.complexity.CreateRiskMeasureMappingPayload.RiskEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateRiskMeasureMappingPayload.RiskEdge(childComplexity), true
|
|
|
|
case "CreateRiskPayload.riskEdge":
|
|
if e.complexity.CreateRiskPayload.RiskEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateRiskPayload.RiskEdge(childComplexity), true
|
|
|
|
case "CreateSnapshotPayload.snapshotEdge":
|
|
if e.complexity.CreateSnapshotPayload.SnapshotEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateSnapshotPayload.SnapshotEdge(childComplexity), true
|
|
|
|
case "CreateTaskPayload.taskEdge":
|
|
if e.complexity.CreateTaskPayload.TaskEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateTaskPayload.TaskEdge(childComplexity), true
|
|
|
|
case "CreateTrustCenterAccessPayload.trustCenterAccessEdge":
|
|
if e.complexity.CreateTrustCenterAccessPayload.TrustCenterAccessEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateTrustCenterAccessPayload.TrustCenterAccessEdge(childComplexity), true
|
|
|
|
case "CreateVendorContactPayload.vendorContactEdge":
|
|
if e.complexity.CreateVendorContactPayload.VendorContactEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateVendorContactPayload.VendorContactEdge(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 "CreateVendorServicePayload.vendorServiceEdge":
|
|
if e.complexity.CreateVendorServicePayload.VendorServiceEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.CreateVendorServicePayload.VendorServiceEdge(childComplexity), true
|
|
|
|
case "Datum.createdAt":
|
|
if e.complexity.Datum.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Datum.CreatedAt(childComplexity), true
|
|
|
|
case "Datum.dataClassification":
|
|
if e.complexity.Datum.DataClassification == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Datum.DataClassification(childComplexity), true
|
|
|
|
case "Datum.id":
|
|
if e.complexity.Datum.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Datum.ID(childComplexity), true
|
|
|
|
case "Datum.name":
|
|
if e.complexity.Datum.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Datum.Name(childComplexity), true
|
|
|
|
case "Datum.organization":
|
|
if e.complexity.Datum.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Datum.Organization(childComplexity), true
|
|
|
|
case "Datum.owner":
|
|
if e.complexity.Datum.Owner == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Datum.Owner(childComplexity), true
|
|
|
|
case "Datum.snapshotId":
|
|
if e.complexity.Datum.SnapshotID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Datum.SnapshotID(childComplexity), true
|
|
|
|
case "Datum.updatedAt":
|
|
if e.complexity.Datum.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Datum.UpdatedAt(childComplexity), true
|
|
|
|
case "Datum.vendors":
|
|
if e.complexity.Datum.Vendors == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Datum_vendors_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Datum.Vendors(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorOrderBy)), true
|
|
|
|
case "DatumConnection.edges":
|
|
if e.complexity.DatumConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DatumConnection.Edges(childComplexity), true
|
|
|
|
case "DatumConnection.pageInfo":
|
|
if e.complexity.DatumConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DatumConnection.PageInfo(childComplexity), true
|
|
|
|
case "DatumConnection.totalCount":
|
|
if e.complexity.DatumConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DatumConnection.TotalCount(childComplexity), true
|
|
|
|
case "DatumEdge.cursor":
|
|
if e.complexity.DatumEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DatumEdge.Cursor(childComplexity), true
|
|
|
|
case "DatumEdge.node":
|
|
if e.complexity.DatumEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DatumEdge.Node(childComplexity), true
|
|
|
|
case "DeleteAssetPayload.deletedAssetId":
|
|
if e.complexity.DeleteAssetPayload.DeletedAssetID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteAssetPayload.DeletedAssetID(childComplexity), true
|
|
|
|
case "DeleteAuditPayload.deletedAuditId":
|
|
if e.complexity.DeleteAuditPayload.DeletedAuditID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteAuditPayload.DeletedAuditID(childComplexity), true
|
|
|
|
case "DeleteAuditReportPayload.audit":
|
|
if e.complexity.DeleteAuditReportPayload.Audit == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteAuditReportPayload.Audit(childComplexity), true
|
|
|
|
case "DeleteComplianceRegistryPayload.deletedComplianceRegistryId":
|
|
if e.complexity.DeleteComplianceRegistryPayload.DeletedComplianceRegistryID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteComplianceRegistryPayload.DeletedComplianceRegistryID(childComplexity), true
|
|
|
|
case "DeleteContinualImprovementRegistryPayload.deletedContinualImprovementRegistryId":
|
|
if e.complexity.DeleteContinualImprovementRegistryPayload.DeletedContinualImprovementRegistryID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteContinualImprovementRegistryPayload.DeletedContinualImprovementRegistryID(childComplexity), true
|
|
|
|
case "DeleteControlAuditMappingPayload.deletedAuditId":
|
|
if e.complexity.DeleteControlAuditMappingPayload.DeletedAuditID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteControlAuditMappingPayload.DeletedAuditID(childComplexity), true
|
|
|
|
case "DeleteControlAuditMappingPayload.deletedControlId":
|
|
if e.complexity.DeleteControlAuditMappingPayload.DeletedControlID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteControlAuditMappingPayload.DeletedControlID(childComplexity), true
|
|
|
|
case "DeleteControlDocumentMappingPayload.deletedControlId":
|
|
if e.complexity.DeleteControlDocumentMappingPayload.DeletedControlID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteControlDocumentMappingPayload.DeletedControlID(childComplexity), true
|
|
|
|
case "DeleteControlDocumentMappingPayload.deletedDocumentId":
|
|
if e.complexity.DeleteControlDocumentMappingPayload.DeletedDocumentID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteControlDocumentMappingPayload.DeletedDocumentID(childComplexity), true
|
|
|
|
case "DeleteControlMeasureMappingPayload.deletedControlId":
|
|
if e.complexity.DeleteControlMeasureMappingPayload.DeletedControlID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteControlMeasureMappingPayload.DeletedControlID(childComplexity), true
|
|
|
|
case "DeleteControlMeasureMappingPayload.deletedMeasureId":
|
|
if e.complexity.DeleteControlMeasureMappingPayload.DeletedMeasureID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteControlMeasureMappingPayload.DeletedMeasureID(childComplexity), true
|
|
|
|
case "DeleteControlPayload.deletedControlId":
|
|
if e.complexity.DeleteControlPayload.DeletedControlID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteControlPayload.DeletedControlID(childComplexity), true
|
|
|
|
case "DeleteControlSnapshotMappingPayload.deletedControlId":
|
|
if e.complexity.DeleteControlSnapshotMappingPayload.DeletedControlID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteControlSnapshotMappingPayload.DeletedControlID(childComplexity), true
|
|
|
|
case "DeleteControlSnapshotMappingPayload.deletedSnapshotId":
|
|
if e.complexity.DeleteControlSnapshotMappingPayload.DeletedSnapshotID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteControlSnapshotMappingPayload.DeletedSnapshotID(childComplexity), true
|
|
|
|
case "DeleteDatumPayload.deletedDatumId":
|
|
if e.complexity.DeleteDatumPayload.DeletedDatumID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteDatumPayload.DeletedDatumID(childComplexity), true
|
|
|
|
case "DeleteDocumentPayload.deletedDocumentId":
|
|
if e.complexity.DeleteDocumentPayload.DeletedDocumentID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteDocumentPayload.DeletedDocumentID(childComplexity), true
|
|
|
|
case "DeleteDraftDocumentVersionPayload.deletedDocumentVersionId":
|
|
if e.complexity.DeleteDraftDocumentVersionPayload.DeletedDocumentVersionID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteDraftDocumentVersionPayload.DeletedDocumentVersionID(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 "DeleteMeasurePayload.deletedMeasureId":
|
|
if e.complexity.DeleteMeasurePayload.DeletedMeasureID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteMeasurePayload.DeletedMeasureID(childComplexity), true
|
|
|
|
case "DeleteNonconformityRegistryPayload.deletedNonconformityRegistryId":
|
|
if e.complexity.DeleteNonconformityRegistryPayload.DeletedNonconformityRegistryID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteNonconformityRegistryPayload.DeletedNonconformityRegistryID(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 "DeleteProcessingActivityRegistryPayload.deletedProcessingActivityRegistryId":
|
|
if e.complexity.DeleteProcessingActivityRegistryPayload.DeletedProcessingActivityRegistryID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteProcessingActivityRegistryPayload.DeletedProcessingActivityRegistryID(childComplexity), true
|
|
|
|
case "DeleteRiskDocumentMappingPayload.deletedDocumentId":
|
|
if e.complexity.DeleteRiskDocumentMappingPayload.DeletedDocumentID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteRiskDocumentMappingPayload.DeletedDocumentID(childComplexity), true
|
|
|
|
case "DeleteRiskDocumentMappingPayload.deletedRiskId":
|
|
if e.complexity.DeleteRiskDocumentMappingPayload.DeletedRiskID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteRiskDocumentMappingPayload.DeletedRiskID(childComplexity), true
|
|
|
|
case "DeleteRiskMeasureMappingPayload.deletedMeasureId":
|
|
if e.complexity.DeleteRiskMeasureMappingPayload.DeletedMeasureID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteRiskMeasureMappingPayload.DeletedMeasureID(childComplexity), true
|
|
|
|
case "DeleteRiskMeasureMappingPayload.deletedRiskId":
|
|
if e.complexity.DeleteRiskMeasureMappingPayload.DeletedRiskID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteRiskMeasureMappingPayload.DeletedRiskID(childComplexity), true
|
|
|
|
case "DeleteRiskPayload.deletedRiskId":
|
|
if e.complexity.DeleteRiskPayload.DeletedRiskID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteRiskPayload.DeletedRiskID(childComplexity), true
|
|
|
|
case "DeleteSnapshotPayload.deletedSnapshotId":
|
|
if e.complexity.DeleteSnapshotPayload.DeletedSnapshotID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteSnapshotPayload.DeletedSnapshotID(childComplexity), true
|
|
|
|
case "DeleteTaskPayload.deletedTaskId":
|
|
if e.complexity.DeleteTaskPayload.DeletedTaskID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteTaskPayload.DeletedTaskID(childComplexity), true
|
|
|
|
case "DeleteTrustCenterAccessPayload.deletedTrustCenterAccessId":
|
|
if e.complexity.DeleteTrustCenterAccessPayload.DeletedTrustCenterAccessID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteTrustCenterAccessPayload.DeletedTrustCenterAccessID(childComplexity), true
|
|
|
|
case "DeleteVendorBusinessAssociateAgreementPayload.deletedVendorId":
|
|
if e.complexity.DeleteVendorBusinessAssociateAgreementPayload.DeletedVendorID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteVendorBusinessAssociateAgreementPayload.DeletedVendorID(childComplexity), true
|
|
|
|
case "DeleteVendorComplianceReportPayload.deletedVendorComplianceReportId":
|
|
if e.complexity.DeleteVendorComplianceReportPayload.DeletedVendorComplianceReportID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteVendorComplianceReportPayload.DeletedVendorComplianceReportID(childComplexity), true
|
|
|
|
case "DeleteVendorContactPayload.deletedVendorContactId":
|
|
if e.complexity.DeleteVendorContactPayload.DeletedVendorContactID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteVendorContactPayload.DeletedVendorContactID(childComplexity), true
|
|
|
|
case "DeleteVendorDataPrivacyAgreementPayload.deletedVendorId":
|
|
if e.complexity.DeleteVendorDataPrivacyAgreementPayload.DeletedVendorID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteVendorDataPrivacyAgreementPayload.DeletedVendorID(childComplexity), true
|
|
|
|
case "DeleteVendorPayload.deletedVendorId":
|
|
if e.complexity.DeleteVendorPayload.DeletedVendorID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteVendorPayload.DeletedVendorID(childComplexity), true
|
|
|
|
case "DeleteVendorServicePayload.deletedVendorServiceId":
|
|
if e.complexity.DeleteVendorServicePayload.DeletedVendorServiceID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DeleteVendorServicePayload.DeletedVendorServiceID(childComplexity), true
|
|
|
|
case "Document.controls":
|
|
if e.complexity.Document.Controls == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Document_controls_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Document.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy), args["filter"].(*types.ControlFilter)), true
|
|
|
|
case "Document.createdAt":
|
|
if e.complexity.Document.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Document.CreatedAt(childComplexity), true
|
|
|
|
case "Document.currentPublishedVersion":
|
|
if e.complexity.Document.CurrentPublishedVersion == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Document.CurrentPublishedVersion(childComplexity), true
|
|
|
|
case "Document.description":
|
|
if e.complexity.Document.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Document.Description(childComplexity), true
|
|
|
|
case "Document.documentType":
|
|
if e.complexity.Document.DocumentType == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Document.DocumentType(childComplexity), true
|
|
|
|
case "Document.id":
|
|
if e.complexity.Document.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Document.ID(childComplexity), true
|
|
|
|
case "Document.organization":
|
|
if e.complexity.Document.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Document.Organization(childComplexity), true
|
|
|
|
case "Document.owner":
|
|
if e.complexity.Document.Owner == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Document.Owner(childComplexity), true
|
|
|
|
case "Document.showOnTrustCenter":
|
|
if e.complexity.Document.ShowOnTrustCenter == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Document.ShowOnTrustCenter(childComplexity), true
|
|
|
|
case "Document.title":
|
|
if e.complexity.Document.Title == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Document.Title(childComplexity), true
|
|
|
|
case "Document.updatedAt":
|
|
if e.complexity.Document.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Document.UpdatedAt(childComplexity), true
|
|
|
|
case "Document.versions":
|
|
if e.complexity.Document.Versions == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Document_versions_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Document.Versions(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DocumentVersionOrderBy), args["filter"].(*types.DocumentVersionFilter)), true
|
|
|
|
case "DocumentConnection.edges":
|
|
if e.complexity.DocumentConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentConnection.Edges(childComplexity), true
|
|
|
|
case "DocumentConnection.pageInfo":
|
|
if e.complexity.DocumentConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentConnection.PageInfo(childComplexity), true
|
|
|
|
case "DocumentConnection.totalCount":
|
|
if e.complexity.DocumentConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentConnection.TotalCount(childComplexity), true
|
|
|
|
case "DocumentEdge.cursor":
|
|
if e.complexity.DocumentEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentEdge.Cursor(childComplexity), true
|
|
|
|
case "DocumentEdge.node":
|
|
if e.complexity.DocumentEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentEdge.Node(childComplexity), true
|
|
|
|
case "DocumentVersion.changelog":
|
|
if e.complexity.DocumentVersion.Changelog == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersion.Changelog(childComplexity), true
|
|
|
|
case "DocumentVersion.content":
|
|
if e.complexity.DocumentVersion.Content == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersion.Content(childComplexity), true
|
|
|
|
case "DocumentVersion.createdAt":
|
|
if e.complexity.DocumentVersion.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersion.CreatedAt(childComplexity), true
|
|
|
|
case "DocumentVersion.document":
|
|
if e.complexity.DocumentVersion.Document == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersion.Document(childComplexity), true
|
|
|
|
case "DocumentVersion.id":
|
|
if e.complexity.DocumentVersion.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersion.ID(childComplexity), true
|
|
|
|
case "DocumentVersion.owner":
|
|
if e.complexity.DocumentVersion.Owner == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersion.Owner(childComplexity), true
|
|
|
|
case "DocumentVersion.publishedAt":
|
|
if e.complexity.DocumentVersion.PublishedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersion.PublishedAt(childComplexity), true
|
|
|
|
case "DocumentVersion.publishedBy":
|
|
if e.complexity.DocumentVersion.PublishedBy == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersion.PublishedBy(childComplexity), true
|
|
|
|
case "DocumentVersion.signatures":
|
|
if e.complexity.DocumentVersion.Signatures == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_DocumentVersion_signatures_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.DocumentVersion.Signatures(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DocumentVersionSignatureOrder)), true
|
|
|
|
case "DocumentVersion.status":
|
|
if e.complexity.DocumentVersion.Status == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersion.Status(childComplexity), true
|
|
|
|
case "DocumentVersion.title":
|
|
if e.complexity.DocumentVersion.Title == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersion.Title(childComplexity), true
|
|
|
|
case "DocumentVersion.updatedAt":
|
|
if e.complexity.DocumentVersion.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersion.UpdatedAt(childComplexity), true
|
|
|
|
case "DocumentVersion.version":
|
|
if e.complexity.DocumentVersion.Version == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersion.Version(childComplexity), true
|
|
|
|
case "DocumentVersionConnection.edges":
|
|
if e.complexity.DocumentVersionConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionConnection.Edges(childComplexity), true
|
|
|
|
case "DocumentVersionConnection.pageInfo":
|
|
if e.complexity.DocumentVersionConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionConnection.PageInfo(childComplexity), true
|
|
|
|
case "DocumentVersionEdge.cursor":
|
|
if e.complexity.DocumentVersionEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionEdge.Cursor(childComplexity), true
|
|
|
|
case "DocumentVersionEdge.node":
|
|
if e.complexity.DocumentVersionEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionEdge.Node(childComplexity), true
|
|
|
|
case "DocumentVersionSignature.createdAt":
|
|
if e.complexity.DocumentVersionSignature.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionSignature.CreatedAt(childComplexity), true
|
|
|
|
case "DocumentVersionSignature.documentVersion":
|
|
if e.complexity.DocumentVersionSignature.DocumentVersion == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionSignature.DocumentVersion(childComplexity), true
|
|
|
|
case "DocumentVersionSignature.id":
|
|
if e.complexity.DocumentVersionSignature.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionSignature.ID(childComplexity), true
|
|
|
|
case "DocumentVersionSignature.requestedAt":
|
|
if e.complexity.DocumentVersionSignature.RequestedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionSignature.RequestedAt(childComplexity), true
|
|
|
|
case "DocumentVersionSignature.requestedBy":
|
|
if e.complexity.DocumentVersionSignature.RequestedBy == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionSignature.RequestedBy(childComplexity), true
|
|
|
|
case "DocumentVersionSignature.signedAt":
|
|
if e.complexity.DocumentVersionSignature.SignedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionSignature.SignedAt(childComplexity), true
|
|
|
|
case "DocumentVersionSignature.signedBy":
|
|
if e.complexity.DocumentVersionSignature.SignedBy == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionSignature.SignedBy(childComplexity), true
|
|
|
|
case "DocumentVersionSignature.state":
|
|
if e.complexity.DocumentVersionSignature.State == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionSignature.State(childComplexity), true
|
|
|
|
case "DocumentVersionSignature.updatedAt":
|
|
if e.complexity.DocumentVersionSignature.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionSignature.UpdatedAt(childComplexity), true
|
|
|
|
case "DocumentVersionSignatureConnection.edges":
|
|
if e.complexity.DocumentVersionSignatureConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionSignatureConnection.Edges(childComplexity), true
|
|
|
|
case "DocumentVersionSignatureConnection.pageInfo":
|
|
if e.complexity.DocumentVersionSignatureConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionSignatureConnection.PageInfo(childComplexity), true
|
|
|
|
case "DocumentVersionSignatureEdge.cursor":
|
|
if e.complexity.DocumentVersionSignatureEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionSignatureEdge.Cursor(childComplexity), true
|
|
|
|
case "DocumentVersionSignatureEdge.node":
|
|
if e.complexity.DocumentVersionSignatureEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.DocumentVersionSignatureEdge.Node(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.measure":
|
|
if e.complexity.Evidence.Measure == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Evidence.Measure(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.task":
|
|
if e.complexity.Evidence.Task == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Evidence.Task(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 "EvidenceConnection.totalCount":
|
|
if e.complexity.EvidenceConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.EvidenceConnection.TotalCount(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 "ExportDocumentVersionPDFPayload.data":
|
|
if e.complexity.ExportDocumentVersionPDFPayload.Data == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ExportDocumentVersionPDFPayload.Data(childComplexity), true
|
|
|
|
case "Framework.controls":
|
|
if e.complexity.Framework.Controls == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Framework_controls_args(ctx, 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), args["filter"].(*types.ControlFilter)), 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.organization":
|
|
if e.complexity.Framework.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Framework.Organization(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 "FrameworkConnection.totalCount":
|
|
if e.complexity.FrameworkConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.FrameworkConnection.TotalCount(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 "GenerateDocumentChangelogPayload.changelog":
|
|
if e.complexity.GenerateDocumentChangelogPayload.Changelog == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.GenerateDocumentChangelogPayload.Changelog(childComplexity), true
|
|
|
|
case "GenerateFrameworkStateOfApplicabilityPayload.data":
|
|
if e.complexity.GenerateFrameworkStateOfApplicabilityPayload.Data == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.GenerateFrameworkStateOfApplicabilityPayload.Data(childComplexity), true
|
|
|
|
case "ImportFrameworkPayload.frameworkEdge":
|
|
if e.complexity.ImportFrameworkPayload.FrameworkEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ImportFrameworkPayload.FrameworkEdge(childComplexity), true
|
|
|
|
case "ImportMeasurePayload.measureEdges":
|
|
if e.complexity.ImportMeasurePayload.MeasureEdges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ImportMeasurePayload.MeasureEdges(childComplexity), true
|
|
|
|
case "InviteUserPayload.success":
|
|
if e.complexity.InviteUserPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.InviteUserPayload.Success(childComplexity), true
|
|
|
|
case "Measure.category":
|
|
if e.complexity.Measure.Category == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Measure.Category(childComplexity), true
|
|
|
|
case "Measure.controls":
|
|
if e.complexity.Measure.Controls == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Measure_controls_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Measure.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy), args["filter"].(*types.ControlFilter)), true
|
|
|
|
case "Measure.createdAt":
|
|
if e.complexity.Measure.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Measure.CreatedAt(childComplexity), true
|
|
|
|
case "Measure.description":
|
|
if e.complexity.Measure.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Measure.Description(childComplexity), true
|
|
|
|
case "Measure.evidences":
|
|
if e.complexity.Measure.Evidences == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Measure_evidences_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Measure.Evidences(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.EvidenceOrderBy)), true
|
|
|
|
case "Measure.id":
|
|
if e.complexity.Measure.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Measure.ID(childComplexity), true
|
|
|
|
case "Measure.name":
|
|
if e.complexity.Measure.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Measure.Name(childComplexity), true
|
|
|
|
case "Measure.risks":
|
|
if e.complexity.Measure.Risks == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Measure_risks_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Measure.Risks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.RiskOrderBy), args["filter"].(*types.RiskFilter)), true
|
|
|
|
case "Measure.state":
|
|
if e.complexity.Measure.State == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Measure.State(childComplexity), true
|
|
|
|
case "Measure.tasks":
|
|
if e.complexity.Measure.Tasks == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Measure_tasks_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Measure.Tasks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.TaskOrderBy)), true
|
|
|
|
case "Measure.updatedAt":
|
|
if e.complexity.Measure.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Measure.UpdatedAt(childComplexity), true
|
|
|
|
case "MeasureConnection.edges":
|
|
if e.complexity.MeasureConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.MeasureConnection.Edges(childComplexity), true
|
|
|
|
case "MeasureConnection.pageInfo":
|
|
if e.complexity.MeasureConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.MeasureConnection.PageInfo(childComplexity), true
|
|
|
|
case "MeasureConnection.totalCount":
|
|
if e.complexity.MeasureConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.MeasureConnection.TotalCount(childComplexity), true
|
|
|
|
case "MeasureEdge.cursor":
|
|
if e.complexity.MeasureEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.MeasureEdge.Cursor(childComplexity), true
|
|
|
|
case "MeasureEdge.node":
|
|
if e.complexity.MeasureEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.MeasureEdge.Node(childComplexity), true
|
|
|
|
case "Mutation.assessVendor":
|
|
if e.complexity.Mutation.AssessVendor == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_assessVendor_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.AssessVendor(childComplexity, args["input"].(types.AssessVendorInput)), true
|
|
|
|
case "Mutation.assignTask":
|
|
if e.complexity.Mutation.AssignTask == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_assignTask_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.AssignTask(childComplexity, args["input"].(types.AssignTaskInput)), true
|
|
|
|
case "Mutation.bulkPublishDocumentVersions":
|
|
if e.complexity.Mutation.BulkPublishDocumentVersions == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_bulkPublishDocumentVersions_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.BulkPublishDocumentVersions(childComplexity, args["input"].(types.BulkPublishDocumentVersionsInput)), true
|
|
|
|
case "Mutation.bulkRequestSignatures":
|
|
if e.complexity.Mutation.BulkRequestSignatures == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_bulkRequestSignatures_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.BulkRequestSignatures(childComplexity, args["input"].(types.BulkRequestSignaturesInput)), true
|
|
|
|
case "Mutation.cancelSignatureRequest":
|
|
if e.complexity.Mutation.CancelSignatureRequest == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_cancelSignatureRequest_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CancelSignatureRequest(childComplexity, args["input"].(types.CancelSignatureRequestInput)), true
|
|
|
|
case "Mutation.confirmEmail":
|
|
if e.complexity.Mutation.ConfirmEmail == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_confirmEmail_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.ConfirmEmail(childComplexity, args["input"].(types.ConfirmEmailInput)), true
|
|
|
|
case "Mutation.createAsset":
|
|
if e.complexity.Mutation.CreateAsset == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createAsset_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateAsset(childComplexity, args["input"].(types.CreateAssetInput)), true
|
|
|
|
case "Mutation.createAudit":
|
|
if e.complexity.Mutation.CreateAudit == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createAudit_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateAudit(childComplexity, args["input"].(types.CreateAuditInput)), true
|
|
|
|
case "Mutation.createComplianceRegistry":
|
|
if e.complexity.Mutation.CreateComplianceRegistry == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createComplianceRegistry_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateComplianceRegistry(childComplexity, args["input"].(types.CreateComplianceRegistryInput)), true
|
|
|
|
case "Mutation.createContinualImprovementRegistry":
|
|
if e.complexity.Mutation.CreateContinualImprovementRegistry == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createContinualImprovementRegistry_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateContinualImprovementRegistry(childComplexity, args["input"].(types.CreateContinualImprovementRegistryInput)), true
|
|
|
|
case "Mutation.createControl":
|
|
if e.complexity.Mutation.CreateControl == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createControl_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateControl(childComplexity, args["input"].(types.CreateControlInput)), true
|
|
|
|
case "Mutation.createControlAuditMapping":
|
|
if e.complexity.Mutation.CreateControlAuditMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createControlAuditMapping_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateControlAuditMapping(childComplexity, args["input"].(types.CreateControlAuditMappingInput)), true
|
|
|
|
case "Mutation.createControlDocumentMapping":
|
|
if e.complexity.Mutation.CreateControlDocumentMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createControlDocumentMapping_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateControlDocumentMapping(childComplexity, args["input"].(types.CreateControlDocumentMappingInput)), true
|
|
|
|
case "Mutation.createControlMeasureMapping":
|
|
if e.complexity.Mutation.CreateControlMeasureMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createControlMeasureMapping_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateControlMeasureMapping(childComplexity, args["input"].(types.CreateControlMeasureMappingInput)), true
|
|
|
|
case "Mutation.createControlSnapshotMapping":
|
|
if e.complexity.Mutation.CreateControlSnapshotMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createControlSnapshotMapping_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateControlSnapshotMapping(childComplexity, args["input"].(types.CreateControlSnapshotMappingInput)), true
|
|
|
|
case "Mutation.createDatum":
|
|
if e.complexity.Mutation.CreateDatum == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createDatum_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateDatum(childComplexity, args["input"].(types.CreateDatumInput)), true
|
|
|
|
case "Mutation.createDocument":
|
|
if e.complexity.Mutation.CreateDocument == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createDocument_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateDocument(childComplexity, args["input"].(types.CreateDocumentInput)), true
|
|
|
|
case "Mutation.createDraftDocumentVersion":
|
|
if e.complexity.Mutation.CreateDraftDocumentVersion == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createDraftDocumentVersion_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateDraftDocumentVersion(childComplexity, args["input"].(types.CreateDraftDocumentVersionInput)), true
|
|
|
|
case "Mutation.createFramework":
|
|
if e.complexity.Mutation.CreateFramework == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createFramework_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateFramework(childComplexity, args["input"].(types.CreateFrameworkInput)), true
|
|
|
|
case "Mutation.createMeasure":
|
|
if e.complexity.Mutation.CreateMeasure == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createMeasure_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateMeasure(childComplexity, args["input"].(types.CreateMeasureInput)), true
|
|
|
|
case "Mutation.createNonconformityRegistry":
|
|
if e.complexity.Mutation.CreateNonconformityRegistry == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createNonconformityRegistry_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateNonconformityRegistry(childComplexity, args["input"].(types.CreateNonconformityRegistryInput)), true
|
|
|
|
case "Mutation.createOrganization":
|
|
if e.complexity.Mutation.CreateOrganization == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createOrganization_args(ctx, 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(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreatePeople(childComplexity, args["input"].(types.CreatePeopleInput)), true
|
|
|
|
case "Mutation.createProcessingActivityRegistry":
|
|
if e.complexity.Mutation.CreateProcessingActivityRegistry == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createProcessingActivityRegistry_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateProcessingActivityRegistry(childComplexity, args["input"].(types.CreateProcessingActivityRegistryInput)), true
|
|
|
|
case "Mutation.createRisk":
|
|
if e.complexity.Mutation.CreateRisk == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createRisk_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateRisk(childComplexity, args["input"].(types.CreateRiskInput)), true
|
|
|
|
case "Mutation.createRiskDocumentMapping":
|
|
if e.complexity.Mutation.CreateRiskDocumentMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createRiskDocumentMapping_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateRiskDocumentMapping(childComplexity, args["input"].(types.CreateRiskDocumentMappingInput)), true
|
|
|
|
case "Mutation.createRiskMeasureMapping":
|
|
if e.complexity.Mutation.CreateRiskMeasureMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createRiskMeasureMapping_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateRiskMeasureMapping(childComplexity, args["input"].(types.CreateRiskMeasureMappingInput)), true
|
|
|
|
case "Mutation.createSnapshot":
|
|
if e.complexity.Mutation.CreateSnapshot == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createSnapshot_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateSnapshot(childComplexity, args["input"].(types.CreateSnapshotInput)), true
|
|
|
|
case "Mutation.createTask":
|
|
if e.complexity.Mutation.CreateTask == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createTask_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateTask(childComplexity, args["input"].(types.CreateTaskInput)), true
|
|
|
|
case "Mutation.createTrustCenterAccess":
|
|
if e.complexity.Mutation.CreateTrustCenterAccess == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createTrustCenterAccess_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateTrustCenterAccess(childComplexity, args["input"].(types.CreateTrustCenterAccessInput)), true
|
|
|
|
case "Mutation.createVendor":
|
|
if e.complexity.Mutation.CreateVendor == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createVendor_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateVendor(childComplexity, args["input"].(types.CreateVendorInput)), true
|
|
|
|
case "Mutation.createVendorContact":
|
|
if e.complexity.Mutation.CreateVendorContact == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createVendorContact_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateVendorContact(childComplexity, args["input"].(types.CreateVendorContactInput)), true
|
|
|
|
case "Mutation.createVendorRiskAssessment":
|
|
if e.complexity.Mutation.CreateVendorRiskAssessment == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createVendorRiskAssessment_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateVendorRiskAssessment(childComplexity, args["input"].(types.CreateVendorRiskAssessmentInput)), true
|
|
|
|
case "Mutation.createVendorService":
|
|
if e.complexity.Mutation.CreateVendorService == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createVendorService_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.CreateVendorService(childComplexity, args["input"].(types.CreateVendorServiceInput)), true
|
|
|
|
case "Mutation.deleteAsset":
|
|
if e.complexity.Mutation.DeleteAsset == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteAsset_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteAsset(childComplexity, args["input"].(types.DeleteAssetInput)), true
|
|
|
|
case "Mutation.deleteAudit":
|
|
if e.complexity.Mutation.DeleteAudit == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteAudit_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteAudit(childComplexity, args["input"].(types.DeleteAuditInput)), true
|
|
|
|
case "Mutation.deleteAuditReport":
|
|
if e.complexity.Mutation.DeleteAuditReport == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteAuditReport_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteAuditReport(childComplexity, args["input"].(types.DeleteAuditReportInput)), true
|
|
|
|
case "Mutation.deleteComplianceRegistry":
|
|
if e.complexity.Mutation.DeleteComplianceRegistry == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteComplianceRegistry_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteComplianceRegistry(childComplexity, args["input"].(types.DeleteComplianceRegistryInput)), true
|
|
|
|
case "Mutation.deleteContinualImprovementRegistry":
|
|
if e.complexity.Mutation.DeleteContinualImprovementRegistry == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteContinualImprovementRegistry_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteContinualImprovementRegistry(childComplexity, args["input"].(types.DeleteContinualImprovementRegistryInput)), true
|
|
|
|
case "Mutation.deleteControl":
|
|
if e.complexity.Mutation.DeleteControl == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteControl_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteControl(childComplexity, args["input"].(types.DeleteControlInput)), true
|
|
|
|
case "Mutation.deleteControlAuditMapping":
|
|
if e.complexity.Mutation.DeleteControlAuditMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteControlAuditMapping_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteControlAuditMapping(childComplexity, args["input"].(types.DeleteControlAuditMappingInput)), true
|
|
|
|
case "Mutation.deleteControlDocumentMapping":
|
|
if e.complexity.Mutation.DeleteControlDocumentMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteControlDocumentMapping_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteControlDocumentMapping(childComplexity, args["input"].(types.DeleteControlDocumentMappingInput)), true
|
|
|
|
case "Mutation.deleteControlMeasureMapping":
|
|
if e.complexity.Mutation.DeleteControlMeasureMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteControlMeasureMapping_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteControlMeasureMapping(childComplexity, args["input"].(types.DeleteControlMeasureMappingInput)), true
|
|
|
|
case "Mutation.deleteControlSnapshotMapping":
|
|
if e.complexity.Mutation.DeleteControlSnapshotMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteControlSnapshotMapping_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteControlSnapshotMapping(childComplexity, args["input"].(types.DeleteControlSnapshotMappingInput)), true
|
|
|
|
case "Mutation.deleteDatum":
|
|
if e.complexity.Mutation.DeleteDatum == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteDatum_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteDatum(childComplexity, args["input"].(types.DeleteDatumInput)), true
|
|
|
|
case "Mutation.deleteDocument":
|
|
if e.complexity.Mutation.DeleteDocument == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteDocument_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteDocument(childComplexity, args["input"].(types.DeleteDocumentInput)), true
|
|
|
|
case "Mutation.deleteDraftDocumentVersion":
|
|
if e.complexity.Mutation.DeleteDraftDocumentVersion == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteDraftDocumentVersion_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteDraftDocumentVersion(childComplexity, args["input"].(types.DeleteDraftDocumentVersionInput)), true
|
|
|
|
case "Mutation.deleteEvidence":
|
|
if e.complexity.Mutation.DeleteEvidence == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteEvidence_args(ctx, 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(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteFramework(childComplexity, args["input"].(types.DeleteFrameworkInput)), true
|
|
|
|
case "Mutation.deleteMeasure":
|
|
if e.complexity.Mutation.DeleteMeasure == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteMeasure_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteMeasure(childComplexity, args["input"].(types.DeleteMeasureInput)), true
|
|
|
|
case "Mutation.deleteNonconformityRegistry":
|
|
if e.complexity.Mutation.DeleteNonconformityRegistry == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteNonconformityRegistry_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteNonconformityRegistry(childComplexity, args["input"].(types.DeleteNonconformityRegistryInput)), true
|
|
|
|
case "Mutation.deleteOrganization":
|
|
if e.complexity.Mutation.DeleteOrganization == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteOrganization_args(ctx, 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(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeletePeople(childComplexity, args["input"].(types.DeletePeopleInput)), true
|
|
|
|
case "Mutation.deleteProcessingActivityRegistry":
|
|
if e.complexity.Mutation.DeleteProcessingActivityRegistry == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteProcessingActivityRegistry_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteProcessingActivityRegistry(childComplexity, args["input"].(types.DeleteProcessingActivityRegistryInput)), true
|
|
|
|
case "Mutation.deleteRisk":
|
|
if e.complexity.Mutation.DeleteRisk == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteRisk_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteRisk(childComplexity, args["input"].(types.DeleteRiskInput)), true
|
|
|
|
case "Mutation.deleteRiskDocumentMapping":
|
|
if e.complexity.Mutation.DeleteRiskDocumentMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteRiskDocumentMapping_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteRiskDocumentMapping(childComplexity, args["input"].(types.DeleteRiskDocumentMappingInput)), true
|
|
|
|
case "Mutation.deleteRiskMeasureMapping":
|
|
if e.complexity.Mutation.DeleteRiskMeasureMapping == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteRiskMeasureMapping_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteRiskMeasureMapping(childComplexity, args["input"].(types.DeleteRiskMeasureMappingInput)), true
|
|
|
|
case "Mutation.deleteSnapshot":
|
|
if e.complexity.Mutation.DeleteSnapshot == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteSnapshot_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteSnapshot(childComplexity, args["input"].(types.DeleteSnapshotInput)), true
|
|
|
|
case "Mutation.deleteTask":
|
|
if e.complexity.Mutation.DeleteTask == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteTask_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteTask(childComplexity, args["input"].(types.DeleteTaskInput)), true
|
|
|
|
case "Mutation.deleteTrustCenterAccess":
|
|
if e.complexity.Mutation.DeleteTrustCenterAccess == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteTrustCenterAccess_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteTrustCenterAccess(childComplexity, args["input"].(types.DeleteTrustCenterAccessInput)), true
|
|
|
|
case "Mutation.deleteVendor":
|
|
if e.complexity.Mutation.DeleteVendor == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteVendor_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteVendor(childComplexity, args["input"].(types.DeleteVendorInput)), true
|
|
|
|
case "Mutation.deleteVendorBusinessAssociateAgreement":
|
|
if e.complexity.Mutation.DeleteVendorBusinessAssociateAgreement == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteVendorBusinessAssociateAgreement_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteVendorBusinessAssociateAgreement(childComplexity, args["input"].(types.DeleteVendorBusinessAssociateAgreementInput)), true
|
|
|
|
case "Mutation.deleteVendorComplianceReport":
|
|
if e.complexity.Mutation.DeleteVendorComplianceReport == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteVendorComplianceReport_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteVendorComplianceReport(childComplexity, args["input"].(types.DeleteVendorComplianceReportInput)), true
|
|
|
|
case "Mutation.deleteVendorContact":
|
|
if e.complexity.Mutation.DeleteVendorContact == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteVendorContact_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteVendorContact(childComplexity, args["input"].(types.DeleteVendorContactInput)), true
|
|
|
|
case "Mutation.deleteVendorDataPrivacyAgreement":
|
|
if e.complexity.Mutation.DeleteVendorDataPrivacyAgreement == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteVendorDataPrivacyAgreement_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteVendorDataPrivacyAgreement(childComplexity, args["input"].(types.DeleteVendorDataPrivacyAgreementInput)), true
|
|
|
|
case "Mutation.deleteVendorService":
|
|
if e.complexity.Mutation.DeleteVendorService == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteVendorService_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.DeleteVendorService(childComplexity, args["input"].(types.DeleteVendorServiceInput)), true
|
|
|
|
case "Mutation.exportDocumentVersionPDF":
|
|
if e.complexity.Mutation.ExportDocumentVersionPDF == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_exportDocumentVersionPDF_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.ExportDocumentVersionPDF(childComplexity, args["input"].(types.ExportDocumentVersionPDFInput)), true
|
|
|
|
case "Mutation.fulfillEvidence":
|
|
if e.complexity.Mutation.FulfillEvidence == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_fulfillEvidence_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.FulfillEvidence(childComplexity, args["input"].(types.FulfillEvidenceInput)), true
|
|
|
|
case "Mutation.generateDocumentChangelog":
|
|
if e.complexity.Mutation.GenerateDocumentChangelog == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_generateDocumentChangelog_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.GenerateDocumentChangelog(childComplexity, args["input"].(types.GenerateDocumentChangelogInput)), true
|
|
|
|
case "Mutation.generateFrameworkStateOfApplicability":
|
|
if e.complexity.Mutation.GenerateFrameworkStateOfApplicability == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_generateFrameworkStateOfApplicability_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.GenerateFrameworkStateOfApplicability(childComplexity, args["input"].(types.GenerateFrameworkStateOfApplicabilityInput)), true
|
|
|
|
case "Mutation.importFramework":
|
|
if e.complexity.Mutation.ImportFramework == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_importFramework_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.ImportFramework(childComplexity, args["input"].(types.ImportFrameworkInput)), true
|
|
|
|
case "Mutation.importMeasure":
|
|
if e.complexity.Mutation.ImportMeasure == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_importMeasure_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.ImportMeasure(childComplexity, args["input"].(types.ImportMeasureInput)), true
|
|
|
|
case "Mutation.inviteUser":
|
|
if e.complexity.Mutation.InviteUser == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_inviteUser_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.InviteUser(childComplexity, args["input"].(types.InviteUserInput)), true
|
|
|
|
case "Mutation.publishDocumentVersion":
|
|
if e.complexity.Mutation.PublishDocumentVersion == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_publishDocumentVersion_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.PublishDocumentVersion(childComplexity, args["input"].(types.PublishDocumentVersionInput)), true
|
|
|
|
case "Mutation.removeUser":
|
|
if e.complexity.Mutation.RemoveUser == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_removeUser_args(ctx, 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(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.RequestEvidence(childComplexity, args["input"].(types.RequestEvidenceInput)), true
|
|
|
|
case "Mutation.requestSignature":
|
|
if e.complexity.Mutation.RequestSignature == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_requestSignature_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.RequestSignature(childComplexity, args["input"].(types.RequestSignatureInput)), true
|
|
|
|
case "Mutation.sendSigningNotifications":
|
|
if e.complexity.Mutation.SendSigningNotifications == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_sendSigningNotifications_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.SendSigningNotifications(childComplexity, args["input"].(types.SendSigningNotificationsInput)), true
|
|
|
|
case "Mutation.unassignTask":
|
|
if e.complexity.Mutation.UnassignTask == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_unassignTask_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UnassignTask(childComplexity, args["input"].(types.UnassignTaskInput)), true
|
|
|
|
case "Mutation.updateAsset":
|
|
if e.complexity.Mutation.UpdateAsset == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateAsset_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateAsset(childComplexity, args["input"].(types.UpdateAssetInput)), true
|
|
|
|
case "Mutation.updateAudit":
|
|
if e.complexity.Mutation.UpdateAudit == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateAudit_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateAudit(childComplexity, args["input"].(types.UpdateAuditInput)), true
|
|
|
|
case "Mutation.updateComplianceRegistry":
|
|
if e.complexity.Mutation.UpdateComplianceRegistry == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateComplianceRegistry_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateComplianceRegistry(childComplexity, args["input"].(types.UpdateComplianceRegistryInput)), true
|
|
|
|
case "Mutation.updateContinualImprovementRegistry":
|
|
if e.complexity.Mutation.UpdateContinualImprovementRegistry == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateContinualImprovementRegistry_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateContinualImprovementRegistry(childComplexity, args["input"].(types.UpdateContinualImprovementRegistryInput)), true
|
|
|
|
case "Mutation.updateControl":
|
|
if e.complexity.Mutation.UpdateControl == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateControl_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateControl(childComplexity, args["input"].(types.UpdateControlInput)), true
|
|
|
|
case "Mutation.updateDatum":
|
|
if e.complexity.Mutation.UpdateDatum == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateDatum_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateDatum(childComplexity, args["input"].(types.UpdateDatumInput)), true
|
|
|
|
case "Mutation.updateDocument":
|
|
if e.complexity.Mutation.UpdateDocument == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateDocument_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateDocument(childComplexity, args["input"].(types.UpdateDocumentInput)), true
|
|
|
|
case "Mutation.updateDocumentVersion":
|
|
if e.complexity.Mutation.UpdateDocumentVersion == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateDocumentVersion_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateDocumentVersion(childComplexity, args["input"].(types.UpdateDocumentVersionInput)), true
|
|
|
|
case "Mutation.updateFramework":
|
|
if e.complexity.Mutation.UpdateFramework == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateFramework_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateFramework(childComplexity, args["input"].(types.UpdateFrameworkInput)), true
|
|
|
|
case "Mutation.updateMeasure":
|
|
if e.complexity.Mutation.UpdateMeasure == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateMeasure_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateMeasure(childComplexity, args["input"].(types.UpdateMeasureInput)), true
|
|
|
|
case "Mutation.updateNonconformityRegistry":
|
|
if e.complexity.Mutation.UpdateNonconformityRegistry == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateNonconformityRegistry_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateNonconformityRegistry(childComplexity, args["input"].(types.UpdateNonconformityRegistryInput)), true
|
|
|
|
case "Mutation.updateOrganization":
|
|
if e.complexity.Mutation.UpdateOrganization == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateOrganization_args(ctx, 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(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdatePeople(childComplexity, args["input"].(types.UpdatePeopleInput)), true
|
|
|
|
case "Mutation.updateProcessingActivityRegistry":
|
|
if e.complexity.Mutation.UpdateProcessingActivityRegistry == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateProcessingActivityRegistry_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateProcessingActivityRegistry(childComplexity, args["input"].(types.UpdateProcessingActivityRegistryInput)), true
|
|
|
|
case "Mutation.updateRisk":
|
|
if e.complexity.Mutation.UpdateRisk == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateRisk_args(ctx, 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(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateTask(childComplexity, args["input"].(types.UpdateTaskInput)), true
|
|
|
|
case "Mutation.updateTrustCenter":
|
|
if e.complexity.Mutation.UpdateTrustCenter == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateTrustCenter_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateTrustCenter(childComplexity, args["input"].(types.UpdateTrustCenterInput)), true
|
|
|
|
case "Mutation.updateTrustCenterAccess":
|
|
if e.complexity.Mutation.UpdateTrustCenterAccess == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateTrustCenterAccess_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateTrustCenterAccess(childComplexity, args["input"].(types.UpdateTrustCenterAccessInput)), true
|
|
|
|
case "Mutation.updateVendor":
|
|
if e.complexity.Mutation.UpdateVendor == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateVendor_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateVendor(childComplexity, args["input"].(types.UpdateVendorInput)), true
|
|
|
|
case "Mutation.updateVendorBusinessAssociateAgreement":
|
|
if e.complexity.Mutation.UpdateVendorBusinessAssociateAgreement == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateVendorBusinessAssociateAgreement_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateVendorBusinessAssociateAgreement(childComplexity, args["input"].(types.UpdateVendorBusinessAssociateAgreementInput)), true
|
|
|
|
case "Mutation.updateVendorContact":
|
|
if e.complexity.Mutation.UpdateVendorContact == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateVendorContact_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateVendorContact(childComplexity, args["input"].(types.UpdateVendorContactInput)), true
|
|
|
|
case "Mutation.updateVendorDataPrivacyAgreement":
|
|
if e.complexity.Mutation.UpdateVendorDataPrivacyAgreement == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateVendorDataPrivacyAgreement_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateVendorDataPrivacyAgreement(childComplexity, args["input"].(types.UpdateVendorDataPrivacyAgreementInput)), true
|
|
|
|
case "Mutation.updateVendorService":
|
|
if e.complexity.Mutation.UpdateVendorService == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateVendorService_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UpdateVendorService(childComplexity, args["input"].(types.UpdateVendorServiceInput)), true
|
|
|
|
case "Mutation.uploadAuditReport":
|
|
if e.complexity.Mutation.UploadAuditReport == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_uploadAuditReport_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UploadAuditReport(childComplexity, args["input"].(types.UploadAuditReportInput)), true
|
|
|
|
case "Mutation.uploadMeasureEvidence":
|
|
if e.complexity.Mutation.UploadMeasureEvidence == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_uploadMeasureEvidence_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UploadMeasureEvidence(childComplexity, args["input"].(types.UploadMeasureEvidenceInput)), true
|
|
|
|
case "Mutation.uploadTaskEvidence":
|
|
if e.complexity.Mutation.UploadTaskEvidence == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_uploadTaskEvidence_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UploadTaskEvidence(childComplexity, args["input"].(types.UploadTaskEvidenceInput)), true
|
|
|
|
case "Mutation.uploadVendorBusinessAssociateAgreement":
|
|
if e.complexity.Mutation.UploadVendorBusinessAssociateAgreement == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_uploadVendorBusinessAssociateAgreement_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UploadVendorBusinessAssociateAgreement(childComplexity, args["input"].(types.UploadVendorBusinessAssociateAgreementInput)), true
|
|
|
|
case "Mutation.uploadVendorComplianceReport":
|
|
if e.complexity.Mutation.UploadVendorComplianceReport == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_uploadVendorComplianceReport_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UploadVendorComplianceReport(childComplexity, args["input"].(types.UploadVendorComplianceReportInput)), true
|
|
|
|
case "Mutation.uploadVendorDataPrivacyAgreement":
|
|
if e.complexity.Mutation.UploadVendorDataPrivacyAgreement == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_uploadVendorDataPrivacyAgreement_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Mutation.UploadVendorDataPrivacyAgreement(childComplexity, args["input"].(types.UploadVendorDataPrivacyAgreementInput)), true
|
|
|
|
case "NonconformityRegistry.audit":
|
|
if e.complexity.NonconformityRegistry.Audit == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.Audit(childComplexity), true
|
|
|
|
case "NonconformityRegistry.correctiveAction":
|
|
if e.complexity.NonconformityRegistry.CorrectiveAction == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.CorrectiveAction(childComplexity), true
|
|
|
|
case "NonconformityRegistry.createdAt":
|
|
if e.complexity.NonconformityRegistry.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.CreatedAt(childComplexity), true
|
|
|
|
case "NonconformityRegistry.dateIdentified":
|
|
if e.complexity.NonconformityRegistry.DateIdentified == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.DateIdentified(childComplexity), true
|
|
|
|
case "NonconformityRegistry.description":
|
|
if e.complexity.NonconformityRegistry.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.Description(childComplexity), true
|
|
|
|
case "NonconformityRegistry.dueDate":
|
|
if e.complexity.NonconformityRegistry.DueDate == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.DueDate(childComplexity), true
|
|
|
|
case "NonconformityRegistry.effectivenessCheck":
|
|
if e.complexity.NonconformityRegistry.EffectivenessCheck == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.EffectivenessCheck(childComplexity), true
|
|
|
|
case "NonconformityRegistry.id":
|
|
if e.complexity.NonconformityRegistry.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.ID(childComplexity), true
|
|
|
|
case "NonconformityRegistry.organization":
|
|
if e.complexity.NonconformityRegistry.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.Organization(childComplexity), true
|
|
|
|
case "NonconformityRegistry.owner":
|
|
if e.complexity.NonconformityRegistry.Owner == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.Owner(childComplexity), true
|
|
|
|
case "NonconformityRegistry.referenceId":
|
|
if e.complexity.NonconformityRegistry.ReferenceID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.ReferenceID(childComplexity), true
|
|
|
|
case "NonconformityRegistry.rootCause":
|
|
if e.complexity.NonconformityRegistry.RootCause == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.RootCause(childComplexity), true
|
|
|
|
case "NonconformityRegistry.snapshotId":
|
|
if e.complexity.NonconformityRegistry.SnapshotID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.SnapshotID(childComplexity), true
|
|
|
|
case "NonconformityRegistry.status":
|
|
if e.complexity.NonconformityRegistry.Status == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.Status(childComplexity), true
|
|
|
|
case "NonconformityRegistry.updatedAt":
|
|
if e.complexity.NonconformityRegistry.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistry.UpdatedAt(childComplexity), true
|
|
|
|
case "NonconformityRegistryConnection.edges":
|
|
if e.complexity.NonconformityRegistryConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistryConnection.Edges(childComplexity), true
|
|
|
|
case "NonconformityRegistryConnection.pageInfo":
|
|
if e.complexity.NonconformityRegistryConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistryConnection.PageInfo(childComplexity), true
|
|
|
|
case "NonconformityRegistryConnection.totalCount":
|
|
if e.complexity.NonconformityRegistryConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistryConnection.TotalCount(childComplexity), true
|
|
|
|
case "NonconformityRegistryEdge.cursor":
|
|
if e.complexity.NonconformityRegistryEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistryEdge.Cursor(childComplexity), true
|
|
|
|
case "NonconformityRegistryEdge.node":
|
|
if e.complexity.NonconformityRegistryEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.NonconformityRegistryEdge.Node(childComplexity), true
|
|
|
|
case "Organization.assets":
|
|
if e.complexity.Organization.Assets == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_assets_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Assets(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.AssetOrderBy), args["filter"].(*types.AssetFilter)), true
|
|
|
|
case "Organization.audits":
|
|
if e.complexity.Organization.Audits == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_audits_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Audits(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.AuditOrderBy)), true
|
|
|
|
case "Organization.complianceRegistries":
|
|
if e.complexity.Organization.ComplianceRegistries == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_complianceRegistries_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.ComplianceRegistries(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ComplianceRegistryOrderBy), args["filter"].(*types.ComplianceRegistryFilter)), true
|
|
|
|
case "Organization.connectors":
|
|
if e.complexity.Organization.Connectors == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_connectors_args(ctx, 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.continualImprovementRegistries":
|
|
if e.complexity.Organization.ContinualImprovementRegistries == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_continualImprovementRegistries_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.ContinualImprovementRegistries(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ContinualImprovementRegistriesOrderBy), args["filter"].(*types.ContinualImprovementRegistryFilter)), true
|
|
|
|
case "Organization.controls":
|
|
if e.complexity.Organization.Controls == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_controls_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy), args["filter"].(*types.ControlFilter)), true
|
|
|
|
case "Organization.createdAt":
|
|
if e.complexity.Organization.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Organization.CreatedAt(childComplexity), true
|
|
|
|
case "Organization.data":
|
|
if e.complexity.Organization.Data == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_data_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Data(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DatumOrderBy), args["filter"].(*types.DatumFilter)), true
|
|
|
|
case "Organization.documents":
|
|
if e.complexity.Organization.Documents == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_documents_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Documents(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DocumentOrderBy), args["filter"].(*types.DocumentFilter)), true
|
|
|
|
case "Organization.frameworks":
|
|
if e.complexity.Organization.Frameworks == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_frameworks_args(ctx, 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.measures":
|
|
if e.complexity.Organization.Measures == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_measures_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Measures(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.MeasureOrderBy), args["filter"].(*types.MeasureFilter)), true
|
|
|
|
case "Organization.name":
|
|
if e.complexity.Organization.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Organization.Name(childComplexity), true
|
|
|
|
case "Organization.nonconformityRegistries":
|
|
if e.complexity.Organization.NonconformityRegistries == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_nonconformityRegistries_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.NonconformityRegistries(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.NonconformityRegistryOrderBy), args["filter"].(*types.NonconformityRegistryFilter)), true
|
|
|
|
case "Organization.peoples":
|
|
if e.complexity.Organization.Peoples == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_peoples_args(ctx, 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), args["filter"].(*types.PeopleFilter)), true
|
|
|
|
case "Organization.processingActivityRegistries":
|
|
if e.complexity.Organization.ProcessingActivityRegistries == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_processingActivityRegistries_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.ProcessingActivityRegistries(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ProcessingActivityRegistryOrderBy), args["filter"].(*types.ProcessingActivityRegistryFilter)), true
|
|
|
|
case "Organization.risks":
|
|
if e.complexity.Organization.Risks == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_risks_args(ctx, 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), args["filter"].(*types.RiskFilter)), true
|
|
|
|
case "Organization.snapshots":
|
|
if e.complexity.Organization.Snapshots == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_snapshots_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Snapshots(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.SnapshotOrderBy)), true
|
|
|
|
case "Organization.tasks":
|
|
if e.complexity.Organization.Tasks == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_tasks_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Organization.Tasks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.TaskOrderBy)), true
|
|
|
|
case "Organization.trustCenter":
|
|
if e.complexity.Organization.TrustCenter == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Organization.TrustCenter(childComplexity), 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(ctx, 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(ctx, 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.contractEndDate":
|
|
if e.complexity.People.ContractEndDate == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.People.ContractEndDate(childComplexity), true
|
|
|
|
case "People.contractStartDate":
|
|
if e.complexity.People.ContractStartDate == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.People.ContractStartDate(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.position":
|
|
if e.complexity.People.Position == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.People.Position(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 "PeopleConnection.totalCount":
|
|
if e.complexity.PeopleConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PeopleConnection.TotalCount(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 "ProcessingActivityRegistry.consentEvidenceLink":
|
|
if e.complexity.ProcessingActivityRegistry.ConsentEvidenceLink == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.ConsentEvidenceLink(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.createdAt":
|
|
if e.complexity.ProcessingActivityRegistry.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.CreatedAt(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.dataProtectionImpactAssessment":
|
|
if e.complexity.ProcessingActivityRegistry.DataProtectionImpactAssessment == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.DataProtectionImpactAssessment(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.dataSubjectCategory":
|
|
if e.complexity.ProcessingActivityRegistry.DataSubjectCategory == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.DataSubjectCategory(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.id":
|
|
if e.complexity.ProcessingActivityRegistry.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.ID(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.internationalTransfers":
|
|
if e.complexity.ProcessingActivityRegistry.InternationalTransfers == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.InternationalTransfers(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.lawfulBasis":
|
|
if e.complexity.ProcessingActivityRegistry.LawfulBasis == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.LawfulBasis(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.location":
|
|
if e.complexity.ProcessingActivityRegistry.Location == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.Location(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.name":
|
|
if e.complexity.ProcessingActivityRegistry.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.Name(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.organization":
|
|
if e.complexity.ProcessingActivityRegistry.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.Organization(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.personalDataCategory":
|
|
if e.complexity.ProcessingActivityRegistry.PersonalDataCategory == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.PersonalDataCategory(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.purpose":
|
|
if e.complexity.ProcessingActivityRegistry.Purpose == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.Purpose(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.recipients":
|
|
if e.complexity.ProcessingActivityRegistry.Recipients == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.Recipients(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.retentionPeriod":
|
|
if e.complexity.ProcessingActivityRegistry.RetentionPeriod == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.RetentionPeriod(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.securityMeasures":
|
|
if e.complexity.ProcessingActivityRegistry.SecurityMeasures == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.SecurityMeasures(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.snapshotId":
|
|
if e.complexity.ProcessingActivityRegistry.SnapshotID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.SnapshotID(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.sourceId":
|
|
if e.complexity.ProcessingActivityRegistry.SourceID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.SourceID(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.specialOrCriminalData":
|
|
if e.complexity.ProcessingActivityRegistry.SpecialOrCriminalData == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.SpecialOrCriminalData(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.transferImpactAssessment":
|
|
if e.complexity.ProcessingActivityRegistry.TransferImpactAssessment == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.TransferImpactAssessment(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.transferSafeguards":
|
|
if e.complexity.ProcessingActivityRegistry.TransferSafeguards == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.TransferSafeguards(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistry.updatedAt":
|
|
if e.complexity.ProcessingActivityRegistry.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistry.UpdatedAt(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistryConnection.edges":
|
|
if e.complexity.ProcessingActivityRegistryConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistryConnection.Edges(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistryConnection.pageInfo":
|
|
if e.complexity.ProcessingActivityRegistryConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistryConnection.PageInfo(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistryConnection.totalCount":
|
|
if e.complexity.ProcessingActivityRegistryConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistryConnection.TotalCount(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistryEdge.cursor":
|
|
if e.complexity.ProcessingActivityRegistryEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistryEdge.Cursor(childComplexity), true
|
|
|
|
case "ProcessingActivityRegistryEdge.node":
|
|
if e.complexity.ProcessingActivityRegistryEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.ProcessingActivityRegistryEdge.Node(childComplexity), true
|
|
|
|
case "PublishDocumentVersionPayload.document":
|
|
if e.complexity.PublishDocumentVersionPayload.Document == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PublishDocumentVersionPayload.Document(childComplexity), true
|
|
|
|
case "PublishDocumentVersionPayload.documentVersion":
|
|
if e.complexity.PublishDocumentVersionPayload.DocumentVersion == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.PublishDocumentVersionPayload.DocumentVersion(childComplexity), true
|
|
|
|
case "Query.node":
|
|
if e.complexity.Query.Node == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Query_node_args(ctx, 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 "Report.createdAt":
|
|
if e.complexity.Report.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Report.CreatedAt(childComplexity), true
|
|
|
|
case "Report.downloadUrl":
|
|
if e.complexity.Report.DownloadURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Report.DownloadURL(childComplexity), true
|
|
|
|
case "Report.filename":
|
|
if e.complexity.Report.Filename == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Report.Filename(childComplexity), true
|
|
|
|
case "Report.id":
|
|
if e.complexity.Report.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Report.ID(childComplexity), true
|
|
|
|
case "Report.mimeType":
|
|
if e.complexity.Report.MimeType == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Report.MimeType(childComplexity), true
|
|
|
|
case "Report.objectKey":
|
|
if e.complexity.Report.ObjectKey == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Report.ObjectKey(childComplexity), true
|
|
|
|
case "Report.size":
|
|
if e.complexity.Report.Size == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Report.Size(childComplexity), true
|
|
|
|
case "Report.updatedAt":
|
|
if e.complexity.Report.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Report.UpdatedAt(childComplexity), true
|
|
|
|
case "RequestEvidencePayload.evidenceEdge":
|
|
if e.complexity.RequestEvidencePayload.EvidenceEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.RequestEvidencePayload.EvidenceEdge(childComplexity), true
|
|
|
|
case "RequestSignaturePayload.documentVersionSignatureEdge":
|
|
if e.complexity.RequestSignaturePayload.DocumentVersionSignatureEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.RequestSignaturePayload.DocumentVersionSignatureEdge(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(ctx, 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), args["filter"].(*types.ControlFilter)), 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.documents":
|
|
if e.complexity.Risk.Documents == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Risk_documents_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Risk.Documents(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DocumentOrderBy), args["filter"].(*types.DocumentFilter)), 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.inherentRiskScore":
|
|
if e.complexity.Risk.InherentRiskScore == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.InherentRiskScore(childComplexity), true
|
|
|
|
case "Risk.measures":
|
|
if e.complexity.Risk.Measures == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Risk_measures_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Risk.Measures(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.MeasureOrderBy), args["filter"].(*types.MeasureFilter)), 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.organization":
|
|
if e.complexity.Risk.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.Organization(childComplexity), true
|
|
|
|
case "Risk.owner":
|
|
if e.complexity.Risk.Owner == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.Owner(childComplexity), 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.residualRiskScore":
|
|
if e.complexity.Risk.ResidualRiskScore == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Risk.ResidualRiskScore(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 "RiskConnection.totalCount":
|
|
if e.complexity.RiskConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.RiskConnection.TotalCount(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 "SendSigningNotificationsPayload.success":
|
|
if e.complexity.SendSigningNotificationsPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.SendSigningNotificationsPayload.Success(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 "Snapshot.controls":
|
|
if e.complexity.Snapshot.Controls == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Snapshot_controls_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Snapshot.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy), args["filter"].(*types.ControlFilter)), true
|
|
|
|
case "Snapshot.createdAt":
|
|
if e.complexity.Snapshot.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Snapshot.CreatedAt(childComplexity), true
|
|
|
|
case "Snapshot.description":
|
|
if e.complexity.Snapshot.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Snapshot.Description(childComplexity), true
|
|
|
|
case "Snapshot.id":
|
|
if e.complexity.Snapshot.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Snapshot.ID(childComplexity), true
|
|
|
|
case "Snapshot.name":
|
|
if e.complexity.Snapshot.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Snapshot.Name(childComplexity), true
|
|
|
|
case "Snapshot.organization":
|
|
if e.complexity.Snapshot.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Snapshot.Organization(childComplexity), true
|
|
|
|
case "Snapshot.type":
|
|
if e.complexity.Snapshot.Type == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Snapshot.Type(childComplexity), true
|
|
|
|
case "SnapshotConnection.edges":
|
|
if e.complexity.SnapshotConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.SnapshotConnection.Edges(childComplexity), true
|
|
|
|
case "SnapshotConnection.pageInfo":
|
|
if e.complexity.SnapshotConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.SnapshotConnection.PageInfo(childComplexity), true
|
|
|
|
case "SnapshotConnection.totalCount":
|
|
if e.complexity.SnapshotConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.SnapshotConnection.TotalCount(childComplexity), true
|
|
|
|
case "SnapshotEdge.cursor":
|
|
if e.complexity.SnapshotEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.SnapshotEdge.Cursor(childComplexity), true
|
|
|
|
case "SnapshotEdge.node":
|
|
if e.complexity.SnapshotEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.SnapshotEdge.Node(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.deadline":
|
|
if e.complexity.Task.Deadline == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Task.Deadline(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(ctx, 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.measure":
|
|
if e.complexity.Task.Measure == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Task.Measure(childComplexity), true
|
|
|
|
case "Task.name":
|
|
if e.complexity.Task.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Task.Name(childComplexity), true
|
|
|
|
case "Task.organization":
|
|
if e.complexity.Task.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Task.Organization(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 "TaskConnection.totalCount":
|
|
if e.complexity.TaskConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TaskConnection.TotalCount(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 "TrustCenter.accesses":
|
|
if e.complexity.TrustCenter.Accesses == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_TrustCenter_accesses_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.TrustCenter.Accesses(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.OrderBy[coredata.TrustCenterAccessOrderField])), true
|
|
|
|
case "TrustCenter.active":
|
|
if e.complexity.TrustCenter.Active == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenter.Active(childComplexity), true
|
|
|
|
case "TrustCenter.createdAt":
|
|
if e.complexity.TrustCenter.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenter.CreatedAt(childComplexity), true
|
|
|
|
case "TrustCenter.id":
|
|
if e.complexity.TrustCenter.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenter.ID(childComplexity), true
|
|
|
|
case "TrustCenter.organization":
|
|
if e.complexity.TrustCenter.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenter.Organization(childComplexity), true
|
|
|
|
case "TrustCenter.slug":
|
|
if e.complexity.TrustCenter.Slug == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenter.Slug(childComplexity), true
|
|
|
|
case "TrustCenter.updatedAt":
|
|
if e.complexity.TrustCenter.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenter.UpdatedAt(childComplexity), true
|
|
|
|
case "TrustCenterAccess.active":
|
|
if e.complexity.TrustCenterAccess.Active == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterAccess.Active(childComplexity), true
|
|
|
|
case "TrustCenterAccess.createdAt":
|
|
if e.complexity.TrustCenterAccess.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterAccess.CreatedAt(childComplexity), true
|
|
|
|
case "TrustCenterAccess.email":
|
|
if e.complexity.TrustCenterAccess.Email == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterAccess.Email(childComplexity), true
|
|
|
|
case "TrustCenterAccess.id":
|
|
if e.complexity.TrustCenterAccess.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterAccess.ID(childComplexity), true
|
|
|
|
case "TrustCenterAccess.name":
|
|
if e.complexity.TrustCenterAccess.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterAccess.Name(childComplexity), true
|
|
|
|
case "TrustCenterAccess.updatedAt":
|
|
if e.complexity.TrustCenterAccess.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterAccess.UpdatedAt(childComplexity), true
|
|
|
|
case "TrustCenterAccessConnection.edges":
|
|
if e.complexity.TrustCenterAccessConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterAccessConnection.Edges(childComplexity), true
|
|
|
|
case "TrustCenterAccessConnection.pageInfo":
|
|
if e.complexity.TrustCenterAccessConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterAccessConnection.PageInfo(childComplexity), true
|
|
|
|
case "TrustCenterAccessEdge.cursor":
|
|
if e.complexity.TrustCenterAccessEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterAccessEdge.Cursor(childComplexity), true
|
|
|
|
case "TrustCenterAccessEdge.node":
|
|
if e.complexity.TrustCenterAccessEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterAccessEdge.Node(childComplexity), true
|
|
|
|
case "TrustCenterConnection.edges":
|
|
if e.complexity.TrustCenterConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterConnection.Edges(childComplexity), true
|
|
|
|
case "TrustCenterConnection.pageInfo":
|
|
if e.complexity.TrustCenterConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterConnection.PageInfo(childComplexity), true
|
|
|
|
case "TrustCenterEdge.cursor":
|
|
if e.complexity.TrustCenterEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterEdge.Cursor(childComplexity), true
|
|
|
|
case "TrustCenterEdge.node":
|
|
if e.complexity.TrustCenterEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.TrustCenterEdge.Node(childComplexity), true
|
|
|
|
case "UnassignTaskPayload.task":
|
|
if e.complexity.UnassignTaskPayload.Task == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UnassignTaskPayload.Task(childComplexity), true
|
|
|
|
case "UpdateAssetPayload.asset":
|
|
if e.complexity.UpdateAssetPayload.Asset == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateAssetPayload.Asset(childComplexity), true
|
|
|
|
case "UpdateAuditPayload.audit":
|
|
if e.complexity.UpdateAuditPayload.Audit == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateAuditPayload.Audit(childComplexity), true
|
|
|
|
case "UpdateComplianceRegistryPayload.complianceRegistry":
|
|
if e.complexity.UpdateComplianceRegistryPayload.ComplianceRegistry == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateComplianceRegistryPayload.ComplianceRegistry(childComplexity), true
|
|
|
|
case "UpdateContinualImprovementRegistryPayload.continualImprovementRegistry":
|
|
if e.complexity.UpdateContinualImprovementRegistryPayload.ContinualImprovementRegistry == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateContinualImprovementRegistryPayload.ContinualImprovementRegistry(childComplexity), true
|
|
|
|
case "UpdateControlPayload.control":
|
|
if e.complexity.UpdateControlPayload.Control == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateControlPayload.Control(childComplexity), true
|
|
|
|
case "UpdateDatumPayload.datum":
|
|
if e.complexity.UpdateDatumPayload.Datum == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateDatumPayload.Datum(childComplexity), true
|
|
|
|
case "UpdateDocumentPayload.document":
|
|
if e.complexity.UpdateDocumentPayload.Document == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateDocumentPayload.Document(childComplexity), true
|
|
|
|
case "UpdateDocumentVersionPayload.documentVersion":
|
|
if e.complexity.UpdateDocumentVersionPayload.DocumentVersion == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateDocumentVersionPayload.DocumentVersion(childComplexity), true
|
|
|
|
case "UpdateFrameworkPayload.framework":
|
|
if e.complexity.UpdateFrameworkPayload.Framework == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateFrameworkPayload.Framework(childComplexity), true
|
|
|
|
case "UpdateMeasurePayload.measure":
|
|
if e.complexity.UpdateMeasurePayload.Measure == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateMeasurePayload.Measure(childComplexity), true
|
|
|
|
case "UpdateNonconformityRegistryPayload.nonconformityRegistry":
|
|
if e.complexity.UpdateNonconformityRegistryPayload.NonconformityRegistry == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateNonconformityRegistryPayload.NonconformityRegistry(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 "UpdateProcessingActivityRegistryPayload.processingActivityRegistry":
|
|
if e.complexity.UpdateProcessingActivityRegistryPayload.ProcessingActivityRegistry == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateProcessingActivityRegistryPayload.ProcessingActivityRegistry(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 "UpdateTrustCenterAccessPayload.trustCenterAccess":
|
|
if e.complexity.UpdateTrustCenterAccessPayload.TrustCenterAccess == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateTrustCenterAccessPayload.TrustCenterAccess(childComplexity), true
|
|
|
|
case "UpdateTrustCenterPayload.trustCenter":
|
|
if e.complexity.UpdateTrustCenterPayload.TrustCenter == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateTrustCenterPayload.TrustCenter(childComplexity), true
|
|
|
|
case "UpdateVendorBusinessAssociateAgreementPayload.vendorBusinessAssociateAgreement":
|
|
if e.complexity.UpdateVendorBusinessAssociateAgreementPayload.VendorBusinessAssociateAgreement == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateVendorBusinessAssociateAgreementPayload.VendorBusinessAssociateAgreement(childComplexity), true
|
|
|
|
case "UpdateVendorContactPayload.vendorContact":
|
|
if e.complexity.UpdateVendorContactPayload.VendorContact == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateVendorContactPayload.VendorContact(childComplexity), true
|
|
|
|
case "UpdateVendorDataPrivacyAgreementPayload.vendorDataPrivacyAgreement":
|
|
if e.complexity.UpdateVendorDataPrivacyAgreementPayload.VendorDataPrivacyAgreement == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateVendorDataPrivacyAgreementPayload.VendorDataPrivacyAgreement(childComplexity), true
|
|
|
|
case "UpdateVendorPayload.vendor":
|
|
if e.complexity.UpdateVendorPayload.Vendor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateVendorPayload.Vendor(childComplexity), true
|
|
|
|
case "UpdateVendorServicePayload.vendorService":
|
|
if e.complexity.UpdateVendorServicePayload.VendorService == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UpdateVendorServicePayload.VendorService(childComplexity), true
|
|
|
|
case "UploadAuditReportPayload.audit":
|
|
if e.complexity.UploadAuditReportPayload.Audit == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UploadAuditReportPayload.Audit(childComplexity), true
|
|
|
|
case "UploadMeasureEvidencePayload.evidenceEdge":
|
|
if e.complexity.UploadMeasureEvidencePayload.EvidenceEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UploadMeasureEvidencePayload.EvidenceEdge(childComplexity), true
|
|
|
|
case "UploadTaskEvidencePayload.evidenceEdge":
|
|
if e.complexity.UploadTaskEvidencePayload.EvidenceEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UploadTaskEvidencePayload.EvidenceEdge(childComplexity), true
|
|
|
|
case "UploadVendorBusinessAssociateAgreementPayload.vendorBusinessAssociateAgreement":
|
|
if e.complexity.UploadVendorBusinessAssociateAgreementPayload.VendorBusinessAssociateAgreement == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UploadVendorBusinessAssociateAgreementPayload.VendorBusinessAssociateAgreement(childComplexity), true
|
|
|
|
case "UploadVendorComplianceReportPayload.vendorComplianceReportEdge":
|
|
if e.complexity.UploadVendorComplianceReportPayload.VendorComplianceReportEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UploadVendorComplianceReportPayload.VendorComplianceReportEdge(childComplexity), true
|
|
|
|
case "UploadVendorDataPrivacyAgreementPayload.vendorDataPrivacyAgreement":
|
|
if e.complexity.UploadVendorDataPrivacyAgreementPayload.VendorDataPrivacyAgreement == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.UploadVendorDataPrivacyAgreementPayload.VendorDataPrivacyAgreement(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(ctx, 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.businessAssociateAgreement":
|
|
if e.complexity.Vendor.BusinessAssociateAgreement == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.BusinessAssociateAgreement(childComplexity), true
|
|
|
|
case "Vendor.businessAssociateAgreementUrl":
|
|
if e.complexity.Vendor.BusinessAssociateAgreementURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.BusinessAssociateAgreementURL(childComplexity), true
|
|
|
|
case "Vendor.businessOwner":
|
|
if e.complexity.Vendor.BusinessOwner == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.BusinessOwner(childComplexity), true
|
|
|
|
case "Vendor.category":
|
|
if e.complexity.Vendor.Category == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.Category(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(ctx, 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.contacts":
|
|
if e.complexity.Vendor.Contacts == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Vendor_contacts_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Vendor.Contacts(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorContactOrderBy)), true
|
|
|
|
case "Vendor.createdAt":
|
|
if e.complexity.Vendor.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.CreatedAt(childComplexity), true
|
|
|
|
case "Vendor.dataPrivacyAgreement":
|
|
if e.complexity.Vendor.DataPrivacyAgreement == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.DataPrivacyAgreement(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.organization":
|
|
if e.complexity.Vendor.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.Organization(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(ctx, 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.services":
|
|
if e.complexity.Vendor.Services == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Vendor_services_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.complexity.Vendor.Services(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorServiceOrderBy)), true
|
|
|
|
case "Vendor.showOnTrustCenter":
|
|
if e.complexity.Vendor.ShowOnTrustCenter == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.ShowOnTrustCenter(childComplexity), true
|
|
|
|
case "Vendor.statusPageUrl":
|
|
if e.complexity.Vendor.StatusPageURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.StatusPageURL(childComplexity), true
|
|
|
|
case "Vendor.subprocessorsListUrl":
|
|
if e.complexity.Vendor.SubprocessorsListURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.Vendor.SubprocessorsListURL(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 "VendorBusinessAssociateAgreement.createdAt":
|
|
if e.complexity.VendorBusinessAssociateAgreement.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorBusinessAssociateAgreement.CreatedAt(childComplexity), true
|
|
|
|
case "VendorBusinessAssociateAgreement.fileName":
|
|
if e.complexity.VendorBusinessAssociateAgreement.FileName == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorBusinessAssociateAgreement.FileName(childComplexity), true
|
|
|
|
case "VendorBusinessAssociateAgreement.fileSize":
|
|
if e.complexity.VendorBusinessAssociateAgreement.FileSize == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorBusinessAssociateAgreement.FileSize(childComplexity), true
|
|
|
|
case "VendorBusinessAssociateAgreement.fileUrl":
|
|
if e.complexity.VendorBusinessAssociateAgreement.FileURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorBusinessAssociateAgreement.FileURL(childComplexity), true
|
|
|
|
case "VendorBusinessAssociateAgreement.id":
|
|
if e.complexity.VendorBusinessAssociateAgreement.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorBusinessAssociateAgreement.ID(childComplexity), true
|
|
|
|
case "VendorBusinessAssociateAgreement.updatedAt":
|
|
if e.complexity.VendorBusinessAssociateAgreement.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorBusinessAssociateAgreement.UpdatedAt(childComplexity), true
|
|
|
|
case "VendorBusinessAssociateAgreement.validFrom":
|
|
if e.complexity.VendorBusinessAssociateAgreement.ValidFrom == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorBusinessAssociateAgreement.ValidFrom(childComplexity), true
|
|
|
|
case "VendorBusinessAssociateAgreement.validUntil":
|
|
if e.complexity.VendorBusinessAssociateAgreement.ValidUntil == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorBusinessAssociateAgreement.ValidUntil(childComplexity), true
|
|
|
|
case "VendorBusinessAssociateAgreement.vendor":
|
|
if e.complexity.VendorBusinessAssociateAgreement.Vendor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorBusinessAssociateAgreement.Vendor(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 "VendorConnection.totalCount":
|
|
if e.complexity.VendorConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorConnection.TotalCount(childComplexity), true
|
|
|
|
case "VendorContact.createdAt":
|
|
if e.complexity.VendorContact.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorContact.CreatedAt(childComplexity), true
|
|
|
|
case "VendorContact.email":
|
|
if e.complexity.VendorContact.Email == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorContact.Email(childComplexity), true
|
|
|
|
case "VendorContact.fullName":
|
|
if e.complexity.VendorContact.FullName == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorContact.FullName(childComplexity), true
|
|
|
|
case "VendorContact.id":
|
|
if e.complexity.VendorContact.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorContact.ID(childComplexity), true
|
|
|
|
case "VendorContact.phone":
|
|
if e.complexity.VendorContact.Phone == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorContact.Phone(childComplexity), true
|
|
|
|
case "VendorContact.role":
|
|
if e.complexity.VendorContact.Role == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorContact.Role(childComplexity), true
|
|
|
|
case "VendorContact.updatedAt":
|
|
if e.complexity.VendorContact.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorContact.UpdatedAt(childComplexity), true
|
|
|
|
case "VendorContact.vendor":
|
|
if e.complexity.VendorContact.Vendor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorContact.Vendor(childComplexity), true
|
|
|
|
case "VendorContactConnection.edges":
|
|
if e.complexity.VendorContactConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorContactConnection.Edges(childComplexity), true
|
|
|
|
case "VendorContactConnection.pageInfo":
|
|
if e.complexity.VendorContactConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorContactConnection.PageInfo(childComplexity), true
|
|
|
|
case "VendorContactEdge.cursor":
|
|
if e.complexity.VendorContactEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorContactEdge.Cursor(childComplexity), true
|
|
|
|
case "VendorContactEdge.node":
|
|
if e.complexity.VendorContactEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorContactEdge.Node(childComplexity), true
|
|
|
|
case "VendorDataPrivacyAgreement.createdAt":
|
|
if e.complexity.VendorDataPrivacyAgreement.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorDataPrivacyAgreement.CreatedAt(childComplexity), true
|
|
|
|
case "VendorDataPrivacyAgreement.fileName":
|
|
if e.complexity.VendorDataPrivacyAgreement.FileName == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorDataPrivacyAgreement.FileName(childComplexity), true
|
|
|
|
case "VendorDataPrivacyAgreement.fileSize":
|
|
if e.complexity.VendorDataPrivacyAgreement.FileSize == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorDataPrivacyAgreement.FileSize(childComplexity), true
|
|
|
|
case "VendorDataPrivacyAgreement.fileUrl":
|
|
if e.complexity.VendorDataPrivacyAgreement.FileURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorDataPrivacyAgreement.FileURL(childComplexity), true
|
|
|
|
case "VendorDataPrivacyAgreement.id":
|
|
if e.complexity.VendorDataPrivacyAgreement.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorDataPrivacyAgreement.ID(childComplexity), true
|
|
|
|
case "VendorDataPrivacyAgreement.updatedAt":
|
|
if e.complexity.VendorDataPrivacyAgreement.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorDataPrivacyAgreement.UpdatedAt(childComplexity), true
|
|
|
|
case "VendorDataPrivacyAgreement.validFrom":
|
|
if e.complexity.VendorDataPrivacyAgreement.ValidFrom == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorDataPrivacyAgreement.ValidFrom(childComplexity), true
|
|
|
|
case "VendorDataPrivacyAgreement.validUntil":
|
|
if e.complexity.VendorDataPrivacyAgreement.ValidUntil == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorDataPrivacyAgreement.ValidUntil(childComplexity), true
|
|
|
|
case "VendorDataPrivacyAgreement.vendor":
|
|
if e.complexity.VendorDataPrivacyAgreement.Vendor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorDataPrivacyAgreement.Vendor(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 "VendorService.createdAt":
|
|
if e.complexity.VendorService.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorService.CreatedAt(childComplexity), true
|
|
|
|
case "VendorService.description":
|
|
if e.complexity.VendorService.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorService.Description(childComplexity), true
|
|
|
|
case "VendorService.id":
|
|
if e.complexity.VendorService.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorService.ID(childComplexity), true
|
|
|
|
case "VendorService.name":
|
|
if e.complexity.VendorService.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorService.Name(childComplexity), true
|
|
|
|
case "VendorService.updatedAt":
|
|
if e.complexity.VendorService.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorService.UpdatedAt(childComplexity), true
|
|
|
|
case "VendorService.vendor":
|
|
if e.complexity.VendorService.Vendor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorService.Vendor(childComplexity), true
|
|
|
|
case "VendorServiceConnection.edges":
|
|
if e.complexity.VendorServiceConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorServiceConnection.Edges(childComplexity), true
|
|
|
|
case "VendorServiceConnection.pageInfo":
|
|
if e.complexity.VendorServiceConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorServiceConnection.PageInfo(childComplexity), true
|
|
|
|
case "VendorServiceEdge.cursor":
|
|
if e.complexity.VendorServiceEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorServiceEdge.Cursor(childComplexity), true
|
|
|
|
case "VendorServiceEdge.node":
|
|
if e.complexity.VendorServiceEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.complexity.VendorServiceEdge.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(ctx, 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), args["filter"].(*types.OrganizationFilter)), 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.unmarshalInputAssessVendorInput,
|
|
ec.unmarshalInputAssetFilter,
|
|
ec.unmarshalInputAssetOrder,
|
|
ec.unmarshalInputAssignTaskInput,
|
|
ec.unmarshalInputAuditOrder,
|
|
ec.unmarshalInputBulkPublishDocumentVersionsInput,
|
|
ec.unmarshalInputBulkRequestSignaturesInput,
|
|
ec.unmarshalInputCancelSignatureRequestInput,
|
|
ec.unmarshalInputComplianceRegistryFilter,
|
|
ec.unmarshalInputComplianceRegistryOrder,
|
|
ec.unmarshalInputConfirmEmailInput,
|
|
ec.unmarshalInputConnectorOrder,
|
|
ec.unmarshalInputContinualImprovementRegistriesOrder,
|
|
ec.unmarshalInputContinualImprovementRegistryFilter,
|
|
ec.unmarshalInputControlFilter,
|
|
ec.unmarshalInputControlOrder,
|
|
ec.unmarshalInputCreateAssetInput,
|
|
ec.unmarshalInputCreateAuditInput,
|
|
ec.unmarshalInputCreateComplianceRegistryInput,
|
|
ec.unmarshalInputCreateContinualImprovementRegistryInput,
|
|
ec.unmarshalInputCreateControlAuditMappingInput,
|
|
ec.unmarshalInputCreateControlDocumentMappingInput,
|
|
ec.unmarshalInputCreateControlInput,
|
|
ec.unmarshalInputCreateControlMeasureMappingInput,
|
|
ec.unmarshalInputCreateControlSnapshotMappingInput,
|
|
ec.unmarshalInputCreateDatumInput,
|
|
ec.unmarshalInputCreateDocumentInput,
|
|
ec.unmarshalInputCreateDraftDocumentVersionInput,
|
|
ec.unmarshalInputCreateEvidenceInput,
|
|
ec.unmarshalInputCreateFrameworkInput,
|
|
ec.unmarshalInputCreateMeasureInput,
|
|
ec.unmarshalInputCreateNonconformityRegistryInput,
|
|
ec.unmarshalInputCreateOrganizationInput,
|
|
ec.unmarshalInputCreatePeopleInput,
|
|
ec.unmarshalInputCreateProcessingActivityRegistryInput,
|
|
ec.unmarshalInputCreateRiskDocumentMappingInput,
|
|
ec.unmarshalInputCreateRiskInput,
|
|
ec.unmarshalInputCreateRiskMeasureMappingInput,
|
|
ec.unmarshalInputCreateSnapshotInput,
|
|
ec.unmarshalInputCreateTaskInput,
|
|
ec.unmarshalInputCreateTrustCenterAccessInput,
|
|
ec.unmarshalInputCreateVendorContactInput,
|
|
ec.unmarshalInputCreateVendorInput,
|
|
ec.unmarshalInputCreateVendorRiskAssessmentInput,
|
|
ec.unmarshalInputCreateVendorServiceInput,
|
|
ec.unmarshalInputDatumFilter,
|
|
ec.unmarshalInputDatumOrder,
|
|
ec.unmarshalInputDeleteAssetInput,
|
|
ec.unmarshalInputDeleteAuditInput,
|
|
ec.unmarshalInputDeleteAuditReportInput,
|
|
ec.unmarshalInputDeleteComplianceRegistryInput,
|
|
ec.unmarshalInputDeleteContinualImprovementRegistryInput,
|
|
ec.unmarshalInputDeleteControlAuditMappingInput,
|
|
ec.unmarshalInputDeleteControlDocumentMappingInput,
|
|
ec.unmarshalInputDeleteControlInput,
|
|
ec.unmarshalInputDeleteControlMeasureMappingInput,
|
|
ec.unmarshalInputDeleteControlSnapshotMappingInput,
|
|
ec.unmarshalInputDeleteDatumInput,
|
|
ec.unmarshalInputDeleteDocumentInput,
|
|
ec.unmarshalInputDeleteDraftDocumentVersionInput,
|
|
ec.unmarshalInputDeleteEvidenceInput,
|
|
ec.unmarshalInputDeleteFrameworkInput,
|
|
ec.unmarshalInputDeleteMeasureInput,
|
|
ec.unmarshalInputDeleteNonconformityRegistryInput,
|
|
ec.unmarshalInputDeleteOrganizationInput,
|
|
ec.unmarshalInputDeletePeopleInput,
|
|
ec.unmarshalInputDeleteProcessingActivityRegistryInput,
|
|
ec.unmarshalInputDeleteRiskDocumentMappingInput,
|
|
ec.unmarshalInputDeleteRiskInput,
|
|
ec.unmarshalInputDeleteRiskMeasureMappingInput,
|
|
ec.unmarshalInputDeleteSnapshotInput,
|
|
ec.unmarshalInputDeleteTaskInput,
|
|
ec.unmarshalInputDeleteTrustCenterAccessInput,
|
|
ec.unmarshalInputDeleteVendorBusinessAssociateAgreementInput,
|
|
ec.unmarshalInputDeleteVendorComplianceReportInput,
|
|
ec.unmarshalInputDeleteVendorContactInput,
|
|
ec.unmarshalInputDeleteVendorDataPrivacyAgreementInput,
|
|
ec.unmarshalInputDeleteVendorInput,
|
|
ec.unmarshalInputDeleteVendorServiceInput,
|
|
ec.unmarshalInputDocumentFilter,
|
|
ec.unmarshalInputDocumentOrder,
|
|
ec.unmarshalInputDocumentVersionFilter,
|
|
ec.unmarshalInputDocumentVersionOrder,
|
|
ec.unmarshalInputDocumentVersionSignatureOrder,
|
|
ec.unmarshalInputEvidenceOrder,
|
|
ec.unmarshalInputExportDocumentVersionPDFInput,
|
|
ec.unmarshalInputFrameworkOrder,
|
|
ec.unmarshalInputFulfillEvidenceInput,
|
|
ec.unmarshalInputGenerateDocumentChangelogInput,
|
|
ec.unmarshalInputGenerateFrameworkStateOfApplicabilityInput,
|
|
ec.unmarshalInputImportFrameworkInput,
|
|
ec.unmarshalInputImportMeasureInput,
|
|
ec.unmarshalInputInviteUserInput,
|
|
ec.unmarshalInputMeasureFilter,
|
|
ec.unmarshalInputMeasureOrder,
|
|
ec.unmarshalInputNonconformityRegistryFilter,
|
|
ec.unmarshalInputNonconformityRegistryOrder,
|
|
ec.unmarshalInputOrganizationFilter,
|
|
ec.unmarshalInputOrganizationOrder,
|
|
ec.unmarshalInputPeopleFilter,
|
|
ec.unmarshalInputPeopleOrder,
|
|
ec.unmarshalInputProcessingActivityRegistryFilter,
|
|
ec.unmarshalInputProcessingActivityRegistryOrder,
|
|
ec.unmarshalInputPublishDocumentVersionInput,
|
|
ec.unmarshalInputRemoveUserInput,
|
|
ec.unmarshalInputRequestEvidenceInput,
|
|
ec.unmarshalInputRequestSignatureInput,
|
|
ec.unmarshalInputRiskFilter,
|
|
ec.unmarshalInputRiskOrder,
|
|
ec.unmarshalInputSendSigningNotificationsInput,
|
|
ec.unmarshalInputSnapshotOrder,
|
|
ec.unmarshalInputTaskOrder,
|
|
ec.unmarshalInputTrustCenterAccessOrder,
|
|
ec.unmarshalInputUnassignTaskInput,
|
|
ec.unmarshalInputUpdateAssetInput,
|
|
ec.unmarshalInputUpdateAuditInput,
|
|
ec.unmarshalInputUpdateComplianceRegistryInput,
|
|
ec.unmarshalInputUpdateContinualImprovementRegistryInput,
|
|
ec.unmarshalInputUpdateControlInput,
|
|
ec.unmarshalInputUpdateDatumInput,
|
|
ec.unmarshalInputUpdateDocumentInput,
|
|
ec.unmarshalInputUpdateDocumentVersionInput,
|
|
ec.unmarshalInputUpdateFrameworkInput,
|
|
ec.unmarshalInputUpdateMeasureInput,
|
|
ec.unmarshalInputUpdateNonconformityRegistryInput,
|
|
ec.unmarshalInputUpdateOrganizationInput,
|
|
ec.unmarshalInputUpdatePeopleInput,
|
|
ec.unmarshalInputUpdateProcessingActivityRegistryInput,
|
|
ec.unmarshalInputUpdateRiskInput,
|
|
ec.unmarshalInputUpdateTaskInput,
|
|
ec.unmarshalInputUpdateTrustCenterAccessInput,
|
|
ec.unmarshalInputUpdateTrustCenterInput,
|
|
ec.unmarshalInputUpdateVendorBusinessAssociateAgreementInput,
|
|
ec.unmarshalInputUpdateVendorContactInput,
|
|
ec.unmarshalInputUpdateVendorDataPrivacyAgreementInput,
|
|
ec.unmarshalInputUpdateVendorInput,
|
|
ec.unmarshalInputUpdateVendorServiceInput,
|
|
ec.unmarshalInputUploadAuditReportInput,
|
|
ec.unmarshalInputUploadMeasureEvidenceInput,
|
|
ec.unmarshalInputUploadTaskEvidenceInput,
|
|
ec.unmarshalInputUploadVendorBusinessAssociateAgreementInput,
|
|
ec.unmarshalInputUploadVendorComplianceReportInput,
|
|
ec.unmarshalInputUploadVendorDataPrivacyAgreementInput,
|
|
ec.unmarshalInputUserOrder,
|
|
ec.unmarshalInputVendorComplianceReportOrder,
|
|
ec.unmarshalInputVendorContactOrder,
|
|
ec.unmarshalInputVendorOrder,
|
|
ec.unmarshalInputVendorRiskAssessmentOrder,
|
|
ec.unmarshalInputVendorServiceOrder,
|
|
)
|
|
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 MeasureState
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.MeasureState") {
|
|
NOT_STARTED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.MeasureStateNotStarted"
|
|
)
|
|
IN_PROGRESS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.MeasureStateInProgress"
|
|
)
|
|
NOT_APPLICABLE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.MeasureStateNotApplicable"
|
|
)
|
|
IMPLEMENTED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.MeasureStateImplemented"
|
|
)
|
|
}
|
|
|
|
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 DocumentStatus
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.DocumentStatus") {
|
|
DRAFT
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentStatusDraft")
|
|
PUBLISHED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DocumentStatusPublished"
|
|
)
|
|
}
|
|
|
|
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"
|
|
)
|
|
}
|
|
|
|
enum AuditState
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.AuditState") {
|
|
NOT_STARTED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.AuditStateNotStarted"
|
|
)
|
|
IN_PROGRESS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.AuditStateInProgress"
|
|
)
|
|
COMPLETED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.AuditStateCompleted"
|
|
)
|
|
REJECTED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.AuditStateRejected"
|
|
)
|
|
OUTDATED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.AuditStateOutdated"
|
|
)
|
|
}
|
|
|
|
enum NonconformityRegistryStatus
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.NonconformityRegistryStatus") {
|
|
OPEN
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.NonconformityRegistryStatusOpen"
|
|
)
|
|
IN_PROGRESS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.NonconformityRegistryStatusInProgress"
|
|
)
|
|
CLOSED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.NonconformityRegistryStatusClosed"
|
|
)
|
|
}
|
|
|
|
enum ComplianceRegistryStatus
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.ComplianceRegistryStatus") {
|
|
OPEN
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ComplianceRegistryStatusOpen"
|
|
)
|
|
IN_PROGRESS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ComplianceRegistryStatusInProgress"
|
|
)
|
|
CLOSED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ComplianceRegistryStatusClosed"
|
|
)
|
|
}
|
|
|
|
enum ContinualImprovementRegistriesStatus
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesStatus") {
|
|
OPEN
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesStatusOpen"
|
|
)
|
|
IN_PROGRESS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesStatusInProgress"
|
|
)
|
|
CLOSED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesStatusClosed"
|
|
)
|
|
}
|
|
|
|
enum ContinualImprovementRegistriesPriority
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesPriority") {
|
|
LOW
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesPriorityLow"
|
|
)
|
|
MEDIUM
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesPriorityMedium"
|
|
)
|
|
HIGH
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesPriorityHigh"
|
|
)
|
|
}
|
|
|
|
enum ProcessingActivityRegistrySpecialOrCriminalData
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistrySpecialOrCriminalData") {
|
|
YES
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistrySpecialOrCriminalDataYes"
|
|
)
|
|
NO
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistrySpecialOrCriminalDataNo"
|
|
)
|
|
POSSIBLE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistrySpecialOrCriminalDataPossible"
|
|
)
|
|
}
|
|
|
|
enum ProcessingActivityRegistryLawfulBasis
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryLawfulBasis") {
|
|
LEGITIMATE_INTEREST
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryLawfulBasisLegitimateInterest"
|
|
)
|
|
CONSENT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryLawfulBasisConsent"
|
|
)
|
|
CONTRACTUAL_NECESSITY
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryLawfulBasisContractualNecessity"
|
|
)
|
|
LEGAL_OBLIGATION
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryLawfulBasisLegalObligation"
|
|
)
|
|
VITAL_INTERESTS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryLawfulBasisVitalInterests"
|
|
)
|
|
PUBLIC_TASK
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryLawfulBasisPublicTask"
|
|
)
|
|
}
|
|
|
|
enum ProcessingActivityRegistryTransferSafeguards
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryTransferSafeguards") {
|
|
STANDARD_CONTRACTUAL_CLAUSES
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryTransferSafeguardsStandardContractualClauses"
|
|
)
|
|
BINDING_CORPORATE_RULES
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryTransferSafeguardsBindingCorporateRules"
|
|
)
|
|
ADEQUACY_DECISION
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryTransferSafeguardsAdequacyDecision"
|
|
)
|
|
DEROGATIONS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryTransferSafeguardsDerogations"
|
|
)
|
|
CODES_OF_CONDUCT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryTransferSafeguardsCodesOfConduct"
|
|
)
|
|
CERTIFICATION_MECHANISMS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryTransferSafeguardsCertificationMechanisms"
|
|
)
|
|
}
|
|
|
|
enum ProcessingActivityRegistryDataProtectionImpactAssessment
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryDataProtectionImpactAssessment") {
|
|
NEEDED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryDataProtectionImpactAssessmentNeeded"
|
|
)
|
|
NOT_NEEDED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryDataProtectionImpactAssessmentNotNeeded"
|
|
)
|
|
}
|
|
|
|
enum ProcessingActivityRegistryTransferImpactAssessment
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryTransferImpactAssessment") {
|
|
NEEDED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryTransferImpactAssessmentNeeded"
|
|
)
|
|
NOT_NEEDED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryTransferImpactAssessmentNotNeeded"
|
|
)
|
|
}
|
|
|
|
# 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"
|
|
)
|
|
KIND
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.PeopleOrderFieldKind"
|
|
)
|
|
}
|
|
|
|
enum VendorOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.VendorOrderField") {
|
|
NAME
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorOrderFieldName"
|
|
)
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorOrderFieldCreatedAt"
|
|
)
|
|
UPDATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorOrderFieldUpdatedAt"
|
|
)
|
|
}
|
|
|
|
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"
|
|
)
|
|
SECTION_TITLE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ControlOrderFieldSectionTitle"
|
|
)
|
|
}
|
|
|
|
enum MeasureOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.MeasureOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.MeasureOrderFieldCreatedAt"
|
|
)
|
|
}
|
|
|
|
enum TaskOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.TaskOrderField") {
|
|
CREATED_AT
|
|
}
|
|
|
|
enum DocumentOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.DocumentOrderField") {
|
|
TITLE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DocumentOrderFieldTitle"
|
|
)
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DocumentOrderFieldCreatedAt"
|
|
)
|
|
DOCUMENT_TYPE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DocumentOrderFieldDocumentType"
|
|
)
|
|
}
|
|
|
|
enum RiskOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.RiskOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.RiskOrderFieldCreatedAt"
|
|
)
|
|
UPDATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.RiskOrderFieldUpdatedAt"
|
|
)
|
|
NAME
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.RiskOrderFieldName")
|
|
CATEGORY
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.RiskOrderFieldCategory"
|
|
)
|
|
TREATMENT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.RiskOrderFieldTreatment"
|
|
)
|
|
INHERENT_RISK_SCORE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.RiskOrderFieldInherentRiskScore"
|
|
)
|
|
RESIDUAL_RISK_SCORE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.RiskOrderFieldResidualRiskScore"
|
|
)
|
|
}
|
|
|
|
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 VendorContactOrderField
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/coredata.VendorContactOrderField"
|
|
) {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorContactOrderFieldCreatedAt"
|
|
)
|
|
FULL_NAME
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorContactOrderFieldFullName"
|
|
)
|
|
EMAIL
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorContactOrderFieldEmail"
|
|
)
|
|
}
|
|
|
|
enum VendorServiceOrderField
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/coredata.VendorServiceOrderField"
|
|
) {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorServiceOrderFieldCreatedAt"
|
|
)
|
|
NAME
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorServiceOrderFieldName"
|
|
)
|
|
}
|
|
|
|
enum OrganizationOrderField
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/coredata.OrganizationOrderField"
|
|
) {
|
|
NAME
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.OrganizationOrderFieldName"
|
|
)
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.OrganizationOrderFieldCreatedAt"
|
|
)
|
|
UPDATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.OrganizationOrderFieldUpdatedAt"
|
|
)
|
|
}
|
|
|
|
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"
|
|
)
|
|
}
|
|
|
|
enum DocumentVersionOrderField
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/coredata.DocumentVersionOrderField"
|
|
) {
|
|
VERSION
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DocumentVersionOrderFieldVersion"
|
|
)
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DocumentVersionOrderFieldCreatedAt"
|
|
)
|
|
}
|
|
|
|
enum VendorCategory
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.VendorCategory") {
|
|
ANALYTICS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryAnalytics"
|
|
)
|
|
CLOUD_MONITORING
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryCloudMonitoring"
|
|
)
|
|
CLOUD_PROVIDER
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryCloudProvider"
|
|
)
|
|
COLLABORATION
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryCollaboration"
|
|
)
|
|
CUSTOMER_SUPPORT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryCustomerSupport"
|
|
)
|
|
DATA_STORAGE_AND_PROCESSING
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryDataStorageAndProcessing"
|
|
)
|
|
DOCUMENT_MANAGEMENT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryDocumentManagement"
|
|
)
|
|
EMPLOYEE_MANAGEMENT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryEmployeeManagement"
|
|
)
|
|
ENGINEERING
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryEngineering"
|
|
)
|
|
FINANCE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryFinance"
|
|
)
|
|
IDENTITY_PROVIDER
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryIdentityProvider"
|
|
)
|
|
IT @goEnum(value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryIT")
|
|
MARKETING
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryMarketing"
|
|
)
|
|
OFFICE_OPERATIONS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryOfficeOperations"
|
|
)
|
|
OTHER
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryOther")
|
|
PASSWORD_MANAGEMENT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryPasswordManagement"
|
|
)
|
|
PRODUCT_AND_DESIGN
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryProductAndDesign"
|
|
)
|
|
PROFESSIONAL_SERVICES
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryProfessionalServices"
|
|
)
|
|
RECRUITING
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryRecruiting"
|
|
)
|
|
SALES
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.VendorCategorySales")
|
|
SECURITY
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategorySecurity"
|
|
)
|
|
VERSION_CONTROL
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.VendorCategoryVersionControl"
|
|
)
|
|
}
|
|
|
|
enum DocumentType
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.DocumentType") {
|
|
OTHER
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypeOther")
|
|
ISMS @goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypeISMS")
|
|
POLICY
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypePolicy")
|
|
}
|
|
|
|
enum AssetType
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.AssetType") {
|
|
PHYSICAL
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.AssetTypePhysical")
|
|
VIRTUAL
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.AssetTypeVirtual")
|
|
}
|
|
|
|
enum CriticityLevel
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.CriticityLevel") {
|
|
LOW @goEnum(value: "github.com/getprobo/probo/pkg/coredata.CriticityLevelLow")
|
|
MEDIUM
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.CriticityLevelMedium"
|
|
)
|
|
HIGH
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.CriticityLevelHigh")
|
|
}
|
|
|
|
enum AssetOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.AssetOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.AssetOrderFieldCreatedAt"
|
|
)
|
|
AMOUNT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.AssetOrderFieldAmount"
|
|
)
|
|
CRITICITY
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.AssetOrderFieldCriticity"
|
|
)
|
|
}
|
|
|
|
enum DatumOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.DatumOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DatumOrderFieldCreatedAt"
|
|
)
|
|
NAME
|
|
@goEnum(value: "github.com/getprobo/probo/pkg/coredata.DatumOrderFieldName")
|
|
DATA_CLASSIFICATION
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DatumOrderFieldDataClassification"
|
|
)
|
|
}
|
|
|
|
enum DataClassification
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.DataClassification") {
|
|
PUBLIC
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DataClassificationPublic"
|
|
)
|
|
INTERNAL
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DataClassificationInternal"
|
|
)
|
|
CONFIDENTIAL
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DataClassificationConfidential"
|
|
)
|
|
SECRET
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DataClassificationSecret"
|
|
)
|
|
}
|
|
|
|
enum ControlStatus
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.ControlStatus") {
|
|
INCLUDED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ControlStatusIncluded"
|
|
)
|
|
EXCLUDED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ControlStatusExcluded"
|
|
)
|
|
}
|
|
|
|
enum AuditOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.AuditOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.AuditOrderFieldCreatedAt"
|
|
)
|
|
VALID_FROM
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.AuditOrderFieldValidFrom"
|
|
)
|
|
VALID_UNTIL
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.AuditOrderFieldValidUntil"
|
|
)
|
|
STATE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.AuditOrderFieldState"
|
|
)
|
|
}
|
|
|
|
enum NonconformityRegistryOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.NonconformityRegistryOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.NonconformityRegistryOrderFieldCreatedAt"
|
|
)
|
|
REFERENCE_ID
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.NonconformityRegistryOrderFieldReferenceId"
|
|
)
|
|
DATE_IDENTIFIED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.NonconformityRegistryOrderFieldDateIdentified"
|
|
)
|
|
DUE_DATE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.NonconformityRegistryOrderFieldDueDate"
|
|
)
|
|
STATUS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.NonconformityRegistryOrderFieldStatus"
|
|
)
|
|
}
|
|
|
|
enum ComplianceRegistryOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.ComplianceRegistryOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ComplianceRegistryOrderFieldCreatedAt"
|
|
)
|
|
REFERENCE_ID
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ComplianceRegistryOrderFieldReferenceId"
|
|
)
|
|
LAST_REVIEW_DATE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ComplianceRegistryOrderFieldLastReviewDate"
|
|
)
|
|
DUE_DATE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ComplianceRegistryOrderFieldDueDate"
|
|
)
|
|
STATUS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ComplianceRegistryOrderFieldStatus"
|
|
)
|
|
}
|
|
|
|
enum ContinualImprovementRegistriesOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesOrderFieldCreatedAt"
|
|
)
|
|
REFERENCE_ID
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesOrderFieldReferenceId"
|
|
)
|
|
TARGET_DATE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesOrderFieldTargetDate"
|
|
)
|
|
STATUS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesOrderFieldStatus"
|
|
)
|
|
PRIORITY
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ContinualImprovementRegistriesOrderFieldPriority"
|
|
)
|
|
}
|
|
|
|
enum ProcessingActivityRegistryOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryOrderFieldCreatedAt"
|
|
)
|
|
NAME
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.ProcessingActivityRegistryOrderFieldName"
|
|
)
|
|
}
|
|
|
|
enum TrustCenterAccessOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.TrustCenterAccessOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.TrustCenterAccessOrderFieldCreatedAt"
|
|
)
|
|
}
|
|
|
|
enum SnapshotsType
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.SnapshotsType") {
|
|
RISKS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.SnapshotsTypeRisks"
|
|
)
|
|
VENDORS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.SnapshotsTypeVendors"
|
|
)
|
|
ASSETS
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.SnapshotsTypeAssets"
|
|
)
|
|
DATA
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.SnapshotsTypeData"
|
|
)
|
|
NONCONFORMITY_REGISTRIES
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.SnapshotsTypeNonConformityRegistries"
|
|
)
|
|
COMPLIANCE_REGISTRIES
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.SnapshotsTypeComplianceRegistries"
|
|
)
|
|
CONTINUAL_IMPROVEMENT_REGISTRIES
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.SnapshotsTypeContinualImprovementRegistries"
|
|
)
|
|
PROCESSING_ACTIVITY_REGISTRIES
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.SnapshotsTypeProcessingActivityRegistries"
|
|
)
|
|
}
|
|
|
|
enum SnapshotOrderField
|
|
@goModel(model: "github.com/getprobo/probo/pkg/coredata.SnapshotOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.SnapshotOrderFieldCreatedAt"
|
|
)
|
|
NAME
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.SnapshotOrderFieldName"
|
|
)
|
|
TYPE
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.SnapshotOrderFieldType"
|
|
)
|
|
}
|
|
|
|
# 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 MeasureOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.MeasureOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: MeasureOrderField!
|
|
}
|
|
|
|
input TaskOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.TaskOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: TaskOrderField!
|
|
}
|
|
|
|
input DocumentOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.DocumentOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: DocumentOrderField!
|
|
}
|
|
|
|
input RiskOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.RiskOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: RiskOrderField!
|
|
}
|
|
|
|
input AuditOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.AuditOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: AuditOrderField!
|
|
}
|
|
|
|
input NonconformityRegistryOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.NonconformityRegistryOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: NonconformityRegistryOrderField!
|
|
}
|
|
|
|
input ComplianceRegistryOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.ComplianceRegistryOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: ComplianceRegistryOrderField!
|
|
}
|
|
|
|
input ContinualImprovementRegistriesOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.ContinualImprovementRegistriesOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: ContinualImprovementRegistriesOrderField!
|
|
}
|
|
|
|
input ProcessingActivityRegistryOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.ProcessingActivityRegistryOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: ProcessingActivityRegistryOrderField!
|
|
}
|
|
|
|
input TrustCenterAccessOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.TrustCenterAccessOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: TrustCenterAccessOrderField!
|
|
}
|
|
|
|
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 VendorContactOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.VendorContactOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: VendorContactOrderField!
|
|
}
|
|
|
|
input VendorServiceOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.VendorServiceOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: VendorServiceOrderField!
|
|
}
|
|
|
|
input OrganizationOrder {
|
|
direction: OrderDirection!
|
|
field: OrganizationOrderField!
|
|
}
|
|
|
|
input ConnectorOrder {
|
|
field: ConnectorOrderField!
|
|
direction: OrderDirection!
|
|
}
|
|
|
|
input DocumentVersionOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.DocumentVersionOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: DocumentVersionOrderField!
|
|
}
|
|
|
|
input SnapshotOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.SnapshotOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: SnapshotOrderField!
|
|
}
|
|
|
|
input DocumentVersionFilter {
|
|
status: DocumentStatus
|
|
}
|
|
|
|
# Input Types for Filtering
|
|
input ControlFilter {
|
|
query: String
|
|
}
|
|
|
|
input DocumentFilter {
|
|
query: String
|
|
}
|
|
|
|
input MeasureFilter {
|
|
query: String
|
|
}
|
|
|
|
input RiskFilter {
|
|
query: String
|
|
}
|
|
|
|
input PeopleFilter {
|
|
excludeContractEnded: Boolean
|
|
}
|
|
|
|
input OrganizationFilter {
|
|
trustCenterSlug: String
|
|
}
|
|
|
|
input DatumFilter {
|
|
snapshotId: ID
|
|
}
|
|
|
|
input NonconformityRegistryFilter {
|
|
snapshotId: ID
|
|
}
|
|
|
|
input ComplianceRegistryFilter {
|
|
snapshotId: ID
|
|
}
|
|
|
|
input ContinualImprovementRegistryFilter {
|
|
snapshotId: ID
|
|
}
|
|
|
|
input ProcessingActivityRegistryFilter {
|
|
snapshotId: ID
|
|
}
|
|
|
|
input AssetFilter {
|
|
snapshotId: ID
|
|
}
|
|
|
|
# Core Types
|
|
type TrustCenter implements Node {
|
|
id: ID!
|
|
active: Boolean!
|
|
slug: String!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
organization: Organization! @goField(forceResolver: true)
|
|
|
|
accesses(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: TrustCenterAccessOrder
|
|
): TrustCenterAccessConnection! @goField(forceResolver: true)
|
|
}
|
|
|
|
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)
|
|
|
|
controls(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ControlOrder
|
|
filter: ControlFilter
|
|
): ControlConnection! @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
|
|
filter: PeopleFilter
|
|
): PeopleConnection! @goField(forceResolver: true)
|
|
|
|
documents(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: DocumentOrder
|
|
filter: DocumentFilter
|
|
): DocumentConnection! @goField(forceResolver: true)
|
|
|
|
measures(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: MeasureOrder
|
|
filter: MeasureFilter
|
|
): MeasureConnection! @goField(forceResolver: true)
|
|
|
|
risks(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: RiskOrder
|
|
filter: RiskFilter
|
|
): RiskConnection! @goField(forceResolver: true)
|
|
|
|
tasks(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: TaskOrder
|
|
): TaskConnection! @goField(forceResolver: true)
|
|
|
|
assets(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: AssetOrder
|
|
filter: AssetFilter = { snapshotId: null }
|
|
): AssetConnection! @goField(forceResolver: true)
|
|
|
|
data(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: DatumOrder
|
|
filter: DatumFilter = { snapshotId: null }
|
|
): DatumConnection! @goField(forceResolver: true)
|
|
|
|
audits(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: AuditOrder
|
|
): AuditConnection! @goField(forceResolver: true)
|
|
|
|
nonconformityRegistries(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: NonconformityRegistryOrder
|
|
filter: NonconformityRegistryFilter = { snapshotId: null }
|
|
): NonconformityRegistryConnection! @goField(forceResolver: true)
|
|
|
|
complianceRegistries(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ComplianceRegistryOrder
|
|
filter: ComplianceRegistryFilter = { snapshotId: null }
|
|
): ComplianceRegistryConnection! @goField(forceResolver: true)
|
|
|
|
continualImprovementRegistries(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ContinualImprovementRegistriesOrder
|
|
filter: ContinualImprovementRegistryFilter = { snapshotId: null }
|
|
): ContinualImprovementRegistryConnection! @goField(forceResolver: true)
|
|
|
|
processingActivityRegistries(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ProcessingActivityRegistryOrder
|
|
filter: ProcessingActivityRegistryFilter = { snapshotId: null }
|
|
): ProcessingActivityRegistryConnection! @goField(forceResolver: true)
|
|
|
|
snapshots(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: SnapshotOrder
|
|
): SnapshotConnection! @goField(forceResolver: true)
|
|
|
|
trustCenter: TrustCenter @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!
|
|
position: String
|
|
contractStartDate: Datetime
|
|
contractEndDate: Datetime
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Vendor implements Node {
|
|
id: ID!
|
|
name: String!
|
|
category: VendorCategory!
|
|
description: String
|
|
|
|
organization: Organization! @goField(forceResolver: true)
|
|
|
|
complianceReports(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: VendorComplianceReportOrder
|
|
): VendorComplianceReportConnection! @goField(forceResolver: true)
|
|
|
|
businessAssociateAgreement: VendorBusinessAssociateAgreement @goField(forceResolver: true)
|
|
dataPrivacyAgreement: VendorDataPrivacyAgreement @goField(forceResolver: true)
|
|
|
|
contacts(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: VendorContactOrder
|
|
): VendorContactConnection! @goField(forceResolver: true)
|
|
|
|
services(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: VendorServiceOrder
|
|
): VendorServiceConnection! @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)
|
|
|
|
statusPageUrl: String
|
|
termsOfServiceUrl: String
|
|
privacyPolicyUrl: String
|
|
serviceLevelAgreementUrl: String
|
|
dataProcessingAgreementUrl: String
|
|
businessAssociateAgreementUrl: String
|
|
subprocessorsListUrl: String
|
|
certifications: [String!]!
|
|
securityPageUrl: String
|
|
trustPageUrl: String
|
|
headquarterAddress: String
|
|
legalName: String
|
|
websiteUrl: String
|
|
showOnTrustCenter: Boolean!
|
|
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 VendorBusinessAssociateAgreement implements Node {
|
|
id: ID!
|
|
vendor: Vendor! @goField(forceResolver: true)
|
|
validFrom: Datetime
|
|
validUntil: Datetime
|
|
fileName: String!
|
|
fileUrl: String! @goField(forceResolver: true)
|
|
fileSize: Int!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type VendorContact implements Node {
|
|
id: ID!
|
|
vendor: Vendor! @goField(forceResolver: true)
|
|
fullName: String
|
|
email: String
|
|
phone: String
|
|
role: String
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type VendorService implements Node {
|
|
id: ID!
|
|
vendor: Vendor! @goField(forceResolver: true)
|
|
name: String!
|
|
description: String
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type VendorDataPrivacyAgreement implements Node {
|
|
id: ID!
|
|
vendor: Vendor! @goField(forceResolver: true)
|
|
validFrom: Datetime
|
|
validUntil: Datetime
|
|
fileName: String!
|
|
fileUrl: String! @goField(forceResolver: true)
|
|
fileSize: Int!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Framework implements Node {
|
|
id: ID!
|
|
name: String!
|
|
description: String!
|
|
|
|
organization: Organization! @goField(forceResolver: true)
|
|
|
|
controls(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ControlOrder
|
|
filter: ControlFilter
|
|
): ControlConnection! @goField(forceResolver: true)
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Control implements Node {
|
|
id: ID!
|
|
sectionTitle: String!
|
|
name: String!
|
|
description: String!
|
|
status: ControlStatus!
|
|
exclusionJustification: String
|
|
|
|
framework: Framework! @goField(forceResolver: true)
|
|
|
|
measures(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: MeasureOrder
|
|
filter: MeasureFilter
|
|
): MeasureConnection! @goField(forceResolver: true)
|
|
|
|
documents(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: DocumentOrder
|
|
filter: DocumentFilter
|
|
): DocumentConnection! @goField(forceResolver: true)
|
|
|
|
audits(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: AuditOrder
|
|
): AuditConnection! @goField(forceResolver: true)
|
|
|
|
snapshots(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: SnapshotOrder
|
|
): SnapshotConnection! @goField(forceResolver: true)
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Measure implements Node {
|
|
id: ID!
|
|
category: String!
|
|
name: String!
|
|
description: String!
|
|
state: MeasureState!
|
|
|
|
evidences(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: EvidenceOrder
|
|
): EvidenceConnection! @goField(forceResolver: true)
|
|
|
|
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
|
|
filter: RiskFilter
|
|
): RiskConnection! @goField(forceResolver: true)
|
|
|
|
controls(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ControlOrder
|
|
filter: ControlFilter
|
|
): ControlConnection! @goField(forceResolver: true)
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Task implements Node {
|
|
id: ID!
|
|
name: String!
|
|
description: String!
|
|
state: TaskState!
|
|
timeEstimate: Duration
|
|
deadline: Datetime
|
|
assignedTo: People @goField(forceResolver: true)
|
|
|
|
organization: Organization! @goField(forceResolver: true)
|
|
measure: Measure @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!
|
|
|
|
task: Task @goField(forceResolver: true)
|
|
measure: Measure! @goField(forceResolver: true)
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Document implements Node {
|
|
id: ID!
|
|
title: String!
|
|
description: String!
|
|
documentType: DocumentType!
|
|
currentPublishedVersion: Int
|
|
showOnTrustCenter: Boolean!
|
|
owner: People! @goField(forceResolver: true)
|
|
organization: Organization! @goField(forceResolver: true)
|
|
|
|
versions(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: DocumentVersionOrder
|
|
filter: DocumentVersionFilter
|
|
): DocumentVersionConnection! @goField(forceResolver: true)
|
|
|
|
controls(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ControlOrder
|
|
filter: ControlFilter
|
|
): 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!
|
|
inherentRiskScore: Int!
|
|
residualLikelihood: Int!
|
|
residualImpact: Int!
|
|
residualRiskScore: Int!
|
|
note: String!
|
|
|
|
owner: People @goField(forceResolver: true)
|
|
organization: Organization! @goField(forceResolver: true)
|
|
|
|
measures(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: MeasureOrder
|
|
filter: MeasureFilter
|
|
): MeasureConnection! @goField(forceResolver: true)
|
|
|
|
documents(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: DocumentOrder
|
|
filter: DocumentFilter
|
|
): DocumentConnection! @goField(forceResolver: true)
|
|
|
|
controls(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ControlOrder
|
|
filter: ControlFilter
|
|
): ControlConnection! @goField(forceResolver: true)
|
|
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Audit implements Node {
|
|
id: ID!
|
|
name: String
|
|
organization: Organization! @goField(forceResolver: true)
|
|
framework: Framework! @goField(forceResolver: true)
|
|
validFrom: Datetime
|
|
validUntil: Datetime
|
|
report: Report @goField(forceResolver: true)
|
|
reportUrl: String @goField(forceResolver: true)
|
|
state: AuditState!
|
|
|
|
controls(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ControlOrder
|
|
filter: ControlFilter
|
|
): ControlConnection! @goField(forceResolver: true)
|
|
|
|
showOnTrustCenter: Boolean!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type NonconformityRegistry implements Node {
|
|
id: ID!
|
|
snapshotId: ID
|
|
organization: Organization! @goField(forceResolver: true)
|
|
referenceId: String!
|
|
description: String
|
|
audit: Audit! @goField(forceResolver: true)
|
|
dateIdentified: Datetime
|
|
rootCause: String!
|
|
correctiveAction: String
|
|
owner: People! @goField(forceResolver: true)
|
|
dueDate: Datetime
|
|
status: NonconformityRegistryStatus!
|
|
effectivenessCheck: String
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type ComplianceRegistry implements Node {
|
|
id: ID!
|
|
snapshotId: ID
|
|
sourceId: ID
|
|
organization: Organization! @goField(forceResolver: true)
|
|
referenceId: String!
|
|
area: String
|
|
source: String
|
|
requirement: String
|
|
actionsToBeImplemented: String
|
|
regulator: String
|
|
owner: People! @goField(forceResolver: true)
|
|
lastReviewDate: Datetime
|
|
dueDate: Datetime
|
|
status: ComplianceRegistryStatus!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type ContinualImprovementRegistry implements Node {
|
|
id: ID!
|
|
snapshotId: ID
|
|
sourceId: ID
|
|
organization: Organization! @goField(forceResolver: true)
|
|
referenceId: String!
|
|
description: String
|
|
source: String
|
|
owner: People! @goField(forceResolver: true)
|
|
targetDate: Datetime
|
|
status: ContinualImprovementRegistriesStatus!
|
|
priority: ContinualImprovementRegistriesPriority!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type ProcessingActivityRegistry implements Node {
|
|
id: ID!
|
|
snapshotId: ID
|
|
sourceId: ID
|
|
organization: Organization! @goField(forceResolver: true)
|
|
name: String!
|
|
purpose: String
|
|
dataSubjectCategory: String
|
|
personalDataCategory: String
|
|
specialOrCriminalData: ProcessingActivityRegistrySpecialOrCriminalData!
|
|
consentEvidenceLink: String
|
|
lawfulBasis: ProcessingActivityRegistryLawfulBasis!
|
|
recipients: String
|
|
location: String
|
|
internationalTransfers: Boolean!
|
|
transferSafeguards: ProcessingActivityRegistryTransferSafeguards
|
|
retentionPeriod: String
|
|
securityMeasures: String
|
|
dataProtectionImpactAssessment: ProcessingActivityRegistryDataProtectionImpactAssessment!
|
|
transferImpactAssessment: ProcessingActivityRegistryTransferImpactAssessment!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type Snapshot implements Node {
|
|
id: ID!
|
|
organization: Organization! @goField(forceResolver: true)
|
|
name: String!
|
|
description: String
|
|
type: SnapshotsType!
|
|
|
|
controls(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ControlOrder
|
|
filter: ControlFilter
|
|
): ControlConnection! @goField(forceResolver: true)
|
|
|
|
createdAt: Datetime!
|
|
}
|
|
|
|
type Report implements Node {
|
|
id: ID!
|
|
objectKey: String!
|
|
mimeType: String!
|
|
filename: String!
|
|
size: Int!
|
|
downloadUrl: String @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
|
|
filter: OrganizationFilter
|
|
): OrganizationConnection! @goField(forceResolver: true)
|
|
}
|
|
|
|
# Connection Types
|
|
type OrganizationConnection {
|
|
edges: [OrganizationEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type OrganizationEdge {
|
|
cursor: CursorKey!
|
|
node: Organization!
|
|
}
|
|
|
|
type TrustCenterConnection {
|
|
edges: [TrustCenterEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type TrustCenterEdge {
|
|
cursor: CursorKey!
|
|
node: TrustCenter!
|
|
}
|
|
|
|
type TrustCenterAccess implements Node {
|
|
id: ID!
|
|
email: String!
|
|
name: String!
|
|
active: Boolean!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type TrustCenterAccessConnection {
|
|
edges: [TrustCenterAccessEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type TrustCenterAccessEdge {
|
|
cursor: CursorKey!
|
|
node: TrustCenterAccess!
|
|
}
|
|
|
|
type UserConnection {
|
|
edges: [UserEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type UserEdge {
|
|
cursor: CursorKey!
|
|
node: User!
|
|
}
|
|
|
|
type PeopleConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.PeopleConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [PeopleEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type PeopleEdge {
|
|
cursor: CursorKey!
|
|
node: People!
|
|
}
|
|
|
|
type VendorConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.VendorConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [VendorEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type VendorEdge {
|
|
cursor: CursorKey!
|
|
node: Vendor!
|
|
}
|
|
|
|
type FrameworkConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.FrameworkConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [FrameworkEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type FrameworkEdge {
|
|
cursor: CursorKey!
|
|
node: Framework!
|
|
}
|
|
|
|
type ControlConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.ControlConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [ControlEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type ControlEdge {
|
|
cursor: CursorKey!
|
|
node: Control!
|
|
}
|
|
|
|
type MeasureConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.MeasureConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [MeasureEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type MeasureEdge {
|
|
cursor: CursorKey!
|
|
node: Measure!
|
|
}
|
|
|
|
type TaskConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.TaskConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [TaskEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type TaskEdge {
|
|
cursor: CursorKey!
|
|
node: Task!
|
|
}
|
|
|
|
type EvidenceConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.EvidenceConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [EvidenceEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type EvidenceEdge {
|
|
cursor: CursorKey!
|
|
node: Evidence!
|
|
}
|
|
|
|
type DocumentConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.DocumentConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [DocumentEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type DocumentEdge {
|
|
cursor: CursorKey!
|
|
node: Document!
|
|
}
|
|
|
|
type RiskConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.RiskConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [RiskEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type RiskEdge {
|
|
cursor: CursorKey!
|
|
node: Risk!
|
|
}
|
|
|
|
type VendorComplianceReportConnection {
|
|
edges: [VendorComplianceReportEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type VendorComplianceReportEdge {
|
|
cursor: CursorKey!
|
|
node: VendorComplianceReport!
|
|
}
|
|
|
|
type VendorContactConnection {
|
|
edges: [VendorContactEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type VendorContactEdge {
|
|
cursor: CursorKey!
|
|
node: VendorContact!
|
|
}
|
|
|
|
type VendorServiceConnection {
|
|
edges: [VendorServiceEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type VendorServiceEdge {
|
|
cursor: CursorKey!
|
|
node: VendorService!
|
|
}
|
|
|
|
type ConnectorConnection {
|
|
edges: [ConnectorEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type ConnectorEdge {
|
|
cursor: CursorKey!
|
|
node: Connector!
|
|
}
|
|
|
|
type VendorRiskAssessmentConnection {
|
|
edges: [VendorRiskAssessmentEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type VendorRiskAssessmentEdge {
|
|
cursor: CursorKey!
|
|
node: VendorRiskAssessment!
|
|
}
|
|
|
|
type DocumentVersionConnection {
|
|
edges: [DocumentVersionEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type DocumentVersionEdge {
|
|
cursor: CursorKey!
|
|
node: DocumentVersion!
|
|
}
|
|
|
|
type DatumConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.DatumConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [DatumEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type DatumEdge {
|
|
cursor: CursorKey!
|
|
node: Datum!
|
|
}
|
|
|
|
type AuditConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.AuditConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [AuditEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type AuditEdge {
|
|
cursor: CursorKey!
|
|
node: Audit!
|
|
}
|
|
|
|
type NonconformityRegistryConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.NonconformityRegistryConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [NonconformityRegistryEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type NonconformityRegistryEdge {
|
|
cursor: CursorKey!
|
|
node: NonconformityRegistry!
|
|
}
|
|
|
|
type ComplianceRegistryConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.ComplianceRegistryConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [ComplianceRegistryEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type ComplianceRegistryEdge {
|
|
cursor: CursorKey!
|
|
node: ComplianceRegistry!
|
|
}
|
|
|
|
type ContinualImprovementRegistryConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.ContinualImprovementRegistryConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [ContinualImprovementRegistryEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type ContinualImprovementRegistryEdge {
|
|
cursor: CursorKey!
|
|
node: ContinualImprovementRegistry!
|
|
}
|
|
|
|
type ProcessingActivityRegistryConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.ProcessingActivityRegistryConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [ProcessingActivityRegistryEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type ProcessingActivityRegistryEdge {
|
|
cursor: CursorKey!
|
|
node: ProcessingActivityRegistry!
|
|
}
|
|
|
|
type SnapshotConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.SnapshotConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [SnapshotEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type SnapshotEdge {
|
|
cursor: CursorKey!
|
|
node: Snapshot!
|
|
}
|
|
|
|
# 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!
|
|
|
|
updateTrustCenter(
|
|
input: UpdateTrustCenterInput!
|
|
): UpdateTrustCenterPayload!
|
|
|
|
# Trust Center Access CRUD mutations
|
|
createTrustCenterAccess(
|
|
input: CreateTrustCenterAccessInput!
|
|
): CreateTrustCenterAccessPayload!
|
|
|
|
updateTrustCenterAccess(
|
|
input: UpdateTrustCenterAccessInput!
|
|
): UpdateTrustCenterAccessPayload!
|
|
|
|
deleteTrustCenterAccess(
|
|
input: DeleteTrustCenterAccessInput!
|
|
): DeleteTrustCenterAccessPayload!
|
|
|
|
# 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!
|
|
|
|
# Vendor Contact mutations
|
|
createVendorContact(input: CreateVendorContactInput!): CreateVendorContactPayload!
|
|
updateVendorContact(input: UpdateVendorContactInput!): UpdateVendorContactPayload!
|
|
deleteVendorContact(input: DeleteVendorContactInput!): DeleteVendorContactPayload!
|
|
|
|
# Vendor Service mutations
|
|
createVendorService(input: CreateVendorServiceInput!): CreateVendorServicePayload!
|
|
updateVendorService(input: UpdateVendorServiceInput!): UpdateVendorServicePayload!
|
|
deleteVendorService(input: DeleteVendorServiceInput!): DeleteVendorServicePayload!
|
|
|
|
# Framework mutations
|
|
createFramework(input: CreateFrameworkInput!): CreateFrameworkPayload!
|
|
updateFramework(input: UpdateFrameworkInput!): UpdateFrameworkPayload!
|
|
importFramework(input: ImportFrameworkInput!): ImportFrameworkPayload!
|
|
deleteFramework(input: DeleteFrameworkInput!): DeleteFrameworkPayload!
|
|
generateFrameworkStateOfApplicability(
|
|
input: GenerateFrameworkStateOfApplicabilityInput!
|
|
): GenerateFrameworkStateOfApplicabilityPayload!
|
|
|
|
# Control mutations
|
|
createControl(input: CreateControlInput!): CreateControlPayload!
|
|
updateControl(input: UpdateControlInput!): UpdateControlPayload!
|
|
deleteControl(input: DeleteControlInput!): DeleteControlPayload!
|
|
|
|
# Measure mutations
|
|
createMeasure(input: CreateMeasureInput!): CreateMeasurePayload!
|
|
updateMeasure(input: UpdateMeasureInput!): UpdateMeasurePayload!
|
|
importMeasure(input: ImportMeasureInput!): ImportMeasurePayload!
|
|
deleteMeasure(input: DeleteMeasureInput!): DeleteMeasurePayload!
|
|
|
|
# Control mutations
|
|
createControlMeasureMapping(
|
|
input: CreateControlMeasureMappingInput!
|
|
): CreateControlMeasureMappingPayload!
|
|
createControlDocumentMapping(
|
|
input: CreateControlDocumentMappingInput!
|
|
): CreateControlDocumentMappingPayload!
|
|
deleteControlMeasureMapping(
|
|
input: DeleteControlMeasureMappingInput!
|
|
): DeleteControlMeasureMappingPayload!
|
|
deleteControlDocumentMapping(
|
|
input: DeleteControlDocumentMappingInput!
|
|
): DeleteControlDocumentMappingPayload!
|
|
createControlAuditMapping(
|
|
input: CreateControlAuditMappingInput!
|
|
): CreateControlAuditMappingPayload!
|
|
deleteControlAuditMapping(
|
|
input: DeleteControlAuditMappingInput!
|
|
): DeleteControlAuditMappingPayload!
|
|
createControlSnapshotMapping(
|
|
input: CreateControlSnapshotMappingInput!
|
|
): CreateControlSnapshotMappingPayload!
|
|
deleteControlSnapshotMapping(
|
|
input: DeleteControlSnapshotMappingInput!
|
|
): DeleteControlSnapshotMappingPayload!
|
|
|
|
# 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!
|
|
createRiskMeasureMapping(
|
|
input: CreateRiskMeasureMappingInput!
|
|
): CreateRiskMeasureMappingPayload!
|
|
deleteRiskMeasureMapping(
|
|
input: DeleteRiskMeasureMappingInput!
|
|
): DeleteRiskMeasureMappingPayload!
|
|
|
|
createRiskDocumentMapping(
|
|
input: CreateRiskDocumentMappingInput!
|
|
): CreateRiskDocumentMappingPayload!
|
|
deleteRiskDocumentMapping(
|
|
input: DeleteRiskDocumentMappingInput!
|
|
): DeleteRiskDocumentMappingPayload!
|
|
|
|
# Evidence mutations
|
|
requestEvidence(input: RequestEvidenceInput!): RequestEvidencePayload!
|
|
fulfillEvidence(input: FulfillEvidenceInput!): FulfillEvidencePayload!
|
|
deleteEvidence(input: DeleteEvidenceInput!): DeleteEvidencePayload!
|
|
uploadTaskEvidence(
|
|
input: UploadTaskEvidenceInput!
|
|
): UploadTaskEvidencePayload!
|
|
uploadMeasureEvidence(
|
|
input: UploadMeasureEvidenceInput!
|
|
): UploadMeasureEvidencePayload!
|
|
|
|
# Vendor Compliance Report mutations
|
|
uploadVendorComplianceReport(
|
|
input: UploadVendorComplianceReportInput!
|
|
): UploadVendorComplianceReportPayload!
|
|
deleteVendorComplianceReport(
|
|
input: DeleteVendorComplianceReportInput!
|
|
): DeleteVendorComplianceReportPayload!
|
|
|
|
# Vendor Business Associate Agreement mutations
|
|
uploadVendorBusinessAssociateAgreement(
|
|
input: UploadVendorBusinessAssociateAgreementInput!
|
|
): UploadVendorBusinessAssociateAgreementPayload!
|
|
updateVendorBusinessAssociateAgreement(
|
|
input: UpdateVendorBusinessAssociateAgreementInput!
|
|
): UpdateVendorBusinessAssociateAgreementPayload!
|
|
deleteVendorBusinessAssociateAgreement(
|
|
input: DeleteVendorBusinessAssociateAgreementInput!
|
|
): DeleteVendorBusinessAssociateAgreementPayload!
|
|
|
|
# Vendor Data Privacy Agreement mutations
|
|
uploadVendorDataPrivacyAgreement(
|
|
input: UploadVendorDataPrivacyAgreementInput!
|
|
): UploadVendorDataPrivacyAgreementPayload!
|
|
updateVendorDataPrivacyAgreement(
|
|
input: UpdateVendorDataPrivacyAgreementInput!
|
|
): UpdateVendorDataPrivacyAgreementPayload!
|
|
deleteVendorDataPrivacyAgreement(
|
|
input: DeleteVendorDataPrivacyAgreementInput!
|
|
): DeleteVendorDataPrivacyAgreementPayload!
|
|
|
|
# Document mutations
|
|
createDocument(input: CreateDocumentInput!): CreateDocumentPayload!
|
|
updateDocument(input: UpdateDocumentInput!): UpdateDocumentPayload!
|
|
deleteDocument(input: DeleteDocumentInput!): DeleteDocumentPayload!
|
|
publishDocumentVersion(
|
|
input: PublishDocumentVersionInput!
|
|
): PublishDocumentVersionPayload!
|
|
bulkPublishDocumentVersions(
|
|
input: BulkPublishDocumentVersionsInput!
|
|
): BulkPublishDocumentVersionsPayload!
|
|
generateDocumentChangelog(
|
|
input: GenerateDocumentChangelogInput!
|
|
): GenerateDocumentChangelogPayload!
|
|
createDraftDocumentVersion(
|
|
input: CreateDraftDocumentVersionInput!
|
|
): CreateDraftDocumentVersionPayload!
|
|
deleteDraftDocumentVersion(
|
|
input: DeleteDraftDocumentVersionInput!
|
|
): DeleteDraftDocumentVersionPayload!
|
|
updateDocumentVersion(
|
|
input: UpdateDocumentVersionInput!
|
|
): UpdateDocumentVersionPayload!
|
|
requestSignature(input: RequestSignatureInput!): RequestSignaturePayload!
|
|
bulkRequestSignatures(
|
|
input: BulkRequestSignaturesInput!
|
|
): BulkRequestSignaturesPayload!
|
|
sendSigningNotifications(
|
|
input: SendSigningNotificationsInput!
|
|
): SendSigningNotificationsPayload!
|
|
cancelSignatureRequest(
|
|
input: CancelSignatureRequestInput!
|
|
): CancelSignatureRequestPayload!
|
|
exportDocumentVersionPDF(
|
|
input: ExportDocumentVersionPDFInput!
|
|
): ExportDocumentVersionPDFPayload!
|
|
|
|
createVendorRiskAssessment(
|
|
input: CreateVendorRiskAssessmentInput!
|
|
): CreateVendorRiskAssessmentPayload!
|
|
|
|
assessVendor(input: AssessVendorInput!): AssessVendorPayload!
|
|
|
|
createAsset(input: CreateAssetInput!): CreateAssetPayload!
|
|
updateAsset(input: UpdateAssetInput!): UpdateAssetPayload!
|
|
deleteAsset(input: DeleteAssetInput!): DeleteAssetPayload!
|
|
|
|
createDatum(input: CreateDatumInput!): CreateDatumPayload!
|
|
updateDatum(input: UpdateDatumInput!): UpdateDatumPayload!
|
|
deleteDatum(input: DeleteDatumInput!): DeleteDatumPayload!
|
|
|
|
createAudit(input: CreateAuditInput!): CreateAuditPayload!
|
|
updateAudit(input: UpdateAuditInput!): UpdateAuditPayload!
|
|
deleteAudit(input: DeleteAuditInput!): DeleteAuditPayload!
|
|
uploadAuditReport(input: UploadAuditReportInput!): UploadAuditReportPayload!
|
|
deleteAuditReport(input: DeleteAuditReportInput!): DeleteAuditReportPayload!
|
|
|
|
# Nonconformity Registry mutations
|
|
createNonconformityRegistry(
|
|
input: CreateNonconformityRegistryInput!
|
|
): CreateNonconformityRegistryPayload!
|
|
updateNonconformityRegistry(
|
|
input: UpdateNonconformityRegistryInput!
|
|
): UpdateNonconformityRegistryPayload!
|
|
deleteNonconformityRegistry(
|
|
input: DeleteNonconformityRegistryInput!
|
|
): DeleteNonconformityRegistryPayload!
|
|
|
|
# Compliance Registry mutations
|
|
createComplianceRegistry(
|
|
input: CreateComplianceRegistryInput!
|
|
): CreateComplianceRegistryPayload!
|
|
updateComplianceRegistry(
|
|
input: UpdateComplianceRegistryInput!
|
|
): UpdateComplianceRegistryPayload!
|
|
deleteComplianceRegistry(
|
|
input: DeleteComplianceRegistryInput!
|
|
): DeleteComplianceRegistryPayload!
|
|
|
|
# Continual Improvement Registry mutations
|
|
createContinualImprovementRegistry(
|
|
input: CreateContinualImprovementRegistryInput!
|
|
): CreateContinualImprovementRegistryPayload!
|
|
updateContinualImprovementRegistry(
|
|
input: UpdateContinualImprovementRegistryInput!
|
|
): UpdateContinualImprovementRegistryPayload!
|
|
deleteContinualImprovementRegistry(
|
|
input: DeleteContinualImprovementRegistryInput!
|
|
): DeleteContinualImprovementRegistryPayload!
|
|
|
|
# Processing Activity Registry mutations
|
|
createProcessingActivityRegistry(
|
|
input: CreateProcessingActivityRegistryInput!
|
|
): CreateProcessingActivityRegistryPayload!
|
|
updateProcessingActivityRegistry(
|
|
input: UpdateProcessingActivityRegistryInput!
|
|
): UpdateProcessingActivityRegistryPayload!
|
|
deleteProcessingActivityRegistry(
|
|
input: DeleteProcessingActivityRegistryInput!
|
|
): DeleteProcessingActivityRegistryPayload!
|
|
|
|
# Snapshot mutations
|
|
createSnapshot(input: CreateSnapshotInput!): CreateSnapshotPayload!
|
|
deleteSnapshot(input: DeleteSnapshotInput!): DeleteSnapshotPayload!
|
|
}
|
|
|
|
# Input Types
|
|
input GenerateFrameworkStateOfApplicabilityInput {
|
|
frameworkId: ID!
|
|
}
|
|
|
|
type GenerateFrameworkStateOfApplicabilityPayload {
|
|
data: String!
|
|
}
|
|
|
|
input CreateOrganizationInput {
|
|
name: String!
|
|
}
|
|
|
|
input UpdateOrganizationInput {
|
|
organizationId: ID!
|
|
name: String
|
|
logo: Upload
|
|
}
|
|
|
|
input DeleteOrganizationInput {
|
|
organizationId: ID!
|
|
}
|
|
|
|
input UpdateTrustCenterInput {
|
|
trustCenterId: ID!
|
|
active: Boolean
|
|
slug: String
|
|
}
|
|
|
|
input CreateTrustCenterAccessInput {
|
|
trustCenterId: ID!
|
|
email: String!
|
|
name: String!
|
|
active: Boolean!
|
|
}
|
|
|
|
input UpdateTrustCenterAccessInput {
|
|
id: ID!
|
|
name: String
|
|
active: Boolean
|
|
}
|
|
|
|
input DeleteTrustCenterAccessInput {
|
|
id: ID!
|
|
}
|
|
|
|
input CreateVendorInput {
|
|
organizationId: ID!
|
|
name: String!
|
|
description: String
|
|
headquarterAddress: String
|
|
legalName: String
|
|
websiteUrl: String
|
|
privacyPolicyUrl: String
|
|
category: VendorCategory
|
|
serviceLevelAgreementUrl: String
|
|
dataProcessingAgreementUrl: String
|
|
businessAssociateAgreementUrl: String
|
|
subprocessorsListUrl: String
|
|
certifications: [String!]
|
|
securityPageUrl: String
|
|
trustPageUrl: String
|
|
statusPageUrl: String
|
|
termsOfServiceUrl: String
|
|
businessOwnerId: ID
|
|
securityOwnerId: ID
|
|
}
|
|
|
|
input UpdateVendorInput {
|
|
id: ID!
|
|
name: String
|
|
description: String
|
|
statusPageUrl: String
|
|
termsOfServiceUrl: String
|
|
privacyPolicyUrl: String
|
|
serviceLevelAgreementUrl: String
|
|
dataProcessingAgreementUrl: String
|
|
businessAssociateAgreementUrl: String
|
|
subprocessorsListUrl: String
|
|
websiteUrl: String
|
|
legalName: String
|
|
headquarterAddress: String
|
|
category: VendorCategory
|
|
certifications: [String!]
|
|
securityPageUrl: String
|
|
trustPageUrl: String
|
|
businessOwnerId: ID
|
|
securityOwnerId: ID
|
|
showOnTrustCenter: Boolean
|
|
}
|
|
|
|
input DeleteVendorInput {
|
|
vendorId: ID!
|
|
}
|
|
|
|
input CreateVendorContactInput {
|
|
vendorId: ID!
|
|
fullName: String
|
|
email: String
|
|
phone: String
|
|
role: String
|
|
}
|
|
|
|
input UpdateVendorContactInput {
|
|
id: ID!
|
|
fullName: String
|
|
email: String
|
|
phone: String
|
|
role: String
|
|
}
|
|
|
|
input DeleteVendorContactInput {
|
|
vendorContactId: ID!
|
|
}
|
|
|
|
input CreateVendorServiceInput {
|
|
vendorId: ID!
|
|
name: String!
|
|
description: String
|
|
url: String
|
|
type: String
|
|
}
|
|
|
|
input UpdateVendorServiceInput {
|
|
id: ID!
|
|
name: String
|
|
description: String
|
|
url: String
|
|
type: String
|
|
}
|
|
|
|
input DeleteVendorServiceInput {
|
|
vendorServiceId: ID!
|
|
}
|
|
|
|
input CreatePeopleInput {
|
|
organizationId: ID!
|
|
fullName: String!
|
|
primaryEmailAddress: String!
|
|
additionalEmailAddresses: [String!]
|
|
kind: PeopleKind!
|
|
position: String
|
|
contractStartDate: Datetime
|
|
contractEndDate: Datetime
|
|
}
|
|
|
|
input UpdatePeopleInput {
|
|
id: ID!
|
|
fullName: String
|
|
primaryEmailAddress: String
|
|
additionalEmailAddresses: [String!]
|
|
kind: PeopleKind
|
|
position: String
|
|
contractStartDate: Datetime
|
|
contractEndDate: Datetime
|
|
}
|
|
|
|
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 CreateMeasureInput {
|
|
organizationId: ID!
|
|
name: String!
|
|
description: String!
|
|
category: String!
|
|
}
|
|
|
|
input UpdateMeasureInput {
|
|
id: ID!
|
|
name: String
|
|
description: String
|
|
category: String
|
|
state: MeasureState
|
|
}
|
|
|
|
input ImportMeasureInput {
|
|
organizationId: ID!
|
|
file: Upload!
|
|
}
|
|
|
|
input CreateTaskInput {
|
|
organizationId: ID!
|
|
measureId: ID
|
|
name: String!
|
|
description: String!
|
|
timeEstimate: Duration
|
|
assignedToId: ID
|
|
deadline: Datetime
|
|
}
|
|
|
|
input UpdateTaskInput {
|
|
taskId: ID!
|
|
name: String
|
|
description: String
|
|
state: TaskState
|
|
timeEstimate: Duration
|
|
deadline: Datetime
|
|
}
|
|
|
|
input DeleteTaskInput {
|
|
taskId: ID!
|
|
}
|
|
|
|
input AssignTaskInput {
|
|
taskId: ID!
|
|
assignedToId: ID!
|
|
}
|
|
|
|
input UnassignTaskInput {
|
|
taskId: ID!
|
|
}
|
|
|
|
input CreateControlMeasureMappingInput {
|
|
controlId: ID!
|
|
measureId: ID!
|
|
}
|
|
|
|
input CreateControlDocumentMappingInput {
|
|
controlId: ID!
|
|
documentId: ID!
|
|
}
|
|
|
|
input DeleteControlMeasureMappingInput {
|
|
controlId: ID!
|
|
measureId: ID!
|
|
}
|
|
|
|
input DeleteControlDocumentMappingInput {
|
|
controlId: ID!
|
|
documentId: ID!
|
|
}
|
|
|
|
input CreateControlAuditMappingInput {
|
|
controlId: ID!
|
|
auditId: ID!
|
|
}
|
|
|
|
input DeleteControlAuditMappingInput {
|
|
controlId: ID!
|
|
auditId: ID!
|
|
}
|
|
|
|
input CreateControlSnapshotMappingInput {
|
|
controlId: ID!
|
|
snapshotId: ID!
|
|
}
|
|
|
|
input DeleteControlSnapshotMappingInput {
|
|
controlId: ID!
|
|
snapshotId: 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 CreateRiskMeasureMappingInput {
|
|
riskId: ID!
|
|
measureId: ID!
|
|
}
|
|
|
|
input DeleteRiskMeasureMappingInput {
|
|
riskId: ID!
|
|
measureId: ID!
|
|
}
|
|
|
|
input CreateRiskDocumentMappingInput {
|
|
riskId: ID!
|
|
documentId: ID!
|
|
}
|
|
|
|
input DeleteRiskDocumentMappingInput {
|
|
riskId: ID!
|
|
documentId: 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 UploadVendorBusinessAssociateAgreementInput {
|
|
vendorId: ID!
|
|
validFrom: Datetime
|
|
validUntil: Datetime
|
|
fileName: String!
|
|
file: Upload!
|
|
}
|
|
|
|
input UpdateVendorBusinessAssociateAgreementInput {
|
|
vendorId: ID!
|
|
validFrom: Datetime
|
|
validUntil: Datetime
|
|
}
|
|
|
|
input DeleteVendorBusinessAssociateAgreementInput {
|
|
vendorId: ID!
|
|
}
|
|
|
|
input UploadVendorDataPrivacyAgreementInput {
|
|
vendorId: ID!
|
|
validFrom: Datetime
|
|
validUntil: Datetime
|
|
fileName: String!
|
|
file: Upload!
|
|
}
|
|
|
|
input UpdateVendorDataPrivacyAgreementInput {
|
|
vendorId: ID!
|
|
validFrom: Datetime
|
|
validUntil: Datetime
|
|
}
|
|
|
|
input DeleteVendorDataPrivacyAgreementInput {
|
|
vendorId: ID!
|
|
}
|
|
|
|
input CreateDocumentInput {
|
|
organizationId: ID!
|
|
title: String!
|
|
content: String!
|
|
ownerId: ID!
|
|
documentType: DocumentType!
|
|
}
|
|
|
|
input UpdateDocumentInput {
|
|
id: ID!
|
|
title: String
|
|
content: String
|
|
ownerId: ID
|
|
createdBy: ID
|
|
documentType: DocumentType
|
|
showOnTrustCenter: Boolean
|
|
}
|
|
|
|
input ExportDocumentVersionPDFInput {
|
|
documentVersionId: ID!
|
|
}
|
|
|
|
input DeleteDocumentInput {
|
|
documentId: ID!
|
|
}
|
|
|
|
input ConfirmEmailInput {
|
|
token: String!
|
|
}
|
|
|
|
input InviteUserInput {
|
|
organizationId: ID!
|
|
email: String!
|
|
fullName: String!
|
|
}
|
|
|
|
input RemoveUserInput {
|
|
organizationId: ID!
|
|
userId: ID!
|
|
}
|
|
|
|
input CreateControlInput {
|
|
frameworkId: ID!
|
|
sectionTitle: String!
|
|
name: String!
|
|
description: String!
|
|
status: ControlStatus!
|
|
exclusionJustification: String
|
|
}
|
|
|
|
input UpdateControlInput {
|
|
id: ID!
|
|
sectionTitle: String
|
|
name: String
|
|
description: String
|
|
status: ControlStatus
|
|
exclusionJustification: String
|
|
}
|
|
|
|
input DeleteControlInput {
|
|
controlId: ID!
|
|
}
|
|
|
|
# Audit input types
|
|
input CreateAuditInput {
|
|
organizationId: ID!
|
|
frameworkId: ID!
|
|
name: String
|
|
validFrom: Datetime
|
|
validUntil: Datetime
|
|
state: AuditState
|
|
}
|
|
|
|
input UpdateAuditInput {
|
|
id: ID!
|
|
name: String
|
|
validFrom: Datetime
|
|
validUntil: Datetime
|
|
state: AuditState
|
|
showOnTrustCenter: Boolean
|
|
}
|
|
|
|
input DeleteAuditInput {
|
|
auditId: ID!
|
|
}
|
|
|
|
input UploadAuditReportInput {
|
|
auditId: ID!
|
|
file: Upload!
|
|
}
|
|
|
|
input DeleteAuditReportInput {
|
|
auditId: ID!
|
|
}
|
|
|
|
# Nonconformity Registry input types
|
|
input CreateNonconformityRegistryInput {
|
|
organizationId: ID!
|
|
referenceId: String!
|
|
description: String
|
|
auditId: ID!
|
|
dateIdentified: Datetime
|
|
rootCause: String!
|
|
correctiveAction: String
|
|
ownerId: ID!
|
|
dueDate: Datetime
|
|
status: NonconformityRegistryStatus!
|
|
effectivenessCheck: String
|
|
}
|
|
|
|
input UpdateNonconformityRegistryInput {
|
|
id: ID!
|
|
referenceId: String
|
|
description: String
|
|
dateIdentified: Datetime
|
|
rootCause: String
|
|
correctiveAction: String
|
|
ownerId: ID
|
|
auditId: ID
|
|
dueDate: Datetime
|
|
status: NonconformityRegistryStatus
|
|
effectivenessCheck: String
|
|
}
|
|
|
|
input DeleteNonconformityRegistryInput {
|
|
nonconformityRegistryId: ID!
|
|
}
|
|
|
|
input CreateComplianceRegistryInput {
|
|
organizationId: ID!
|
|
referenceId: String!
|
|
area: String
|
|
source: String
|
|
requirement: String
|
|
actionsToBeImplemented: String
|
|
regulator: String
|
|
ownerId: ID!
|
|
lastReviewDate: Datetime
|
|
dueDate: Datetime
|
|
status: ComplianceRegistryStatus!
|
|
}
|
|
|
|
input UpdateComplianceRegistryInput {
|
|
id: ID!
|
|
referenceId: String
|
|
area: String
|
|
source: String
|
|
requirement: String
|
|
actionsToBeImplemented: String
|
|
regulator: String
|
|
ownerId: ID
|
|
lastReviewDate: Datetime
|
|
dueDate: Datetime
|
|
status: ComplianceRegistryStatus
|
|
}
|
|
|
|
input DeleteComplianceRegistryInput {
|
|
complianceRegistryId: ID!
|
|
}
|
|
|
|
input CreateContinualImprovementRegistryInput {
|
|
organizationId: ID!
|
|
referenceId: String!
|
|
description: String
|
|
source: String
|
|
ownerId: ID!
|
|
targetDate: Datetime
|
|
status: ContinualImprovementRegistriesStatus!
|
|
priority: ContinualImprovementRegistriesPriority!
|
|
}
|
|
|
|
input UpdateContinualImprovementRegistryInput {
|
|
id: ID!
|
|
referenceId: String
|
|
description: String
|
|
source: String
|
|
ownerId: ID
|
|
targetDate: Datetime
|
|
status: ContinualImprovementRegistriesStatus
|
|
priority: ContinualImprovementRegistriesPriority
|
|
}
|
|
|
|
input DeleteContinualImprovementRegistryInput {
|
|
continualImprovementRegistryId: ID!
|
|
}
|
|
|
|
input CreateProcessingActivityRegistryInput {
|
|
organizationId: ID!
|
|
name: String!
|
|
purpose: String
|
|
dataSubjectCategory: String
|
|
personalDataCategory: String
|
|
specialOrCriminalData: ProcessingActivityRegistrySpecialOrCriminalData!
|
|
consentEvidenceLink: String
|
|
lawfulBasis: ProcessingActivityRegistryLawfulBasis!
|
|
recipients: String
|
|
location: String
|
|
internationalTransfers: Boolean!
|
|
transferSafeguards: ProcessingActivityRegistryTransferSafeguards
|
|
retentionPeriod: String
|
|
securityMeasures: String
|
|
dataProtectionImpactAssessment: ProcessingActivityRegistryDataProtectionImpactAssessment!
|
|
transferImpactAssessment: ProcessingActivityRegistryTransferImpactAssessment!
|
|
}
|
|
|
|
input UpdateProcessingActivityRegistryInput {
|
|
id: ID!
|
|
name: String
|
|
purpose: String
|
|
dataSubjectCategory: String
|
|
personalDataCategory: String
|
|
specialOrCriminalData: ProcessingActivityRegistrySpecialOrCriminalData
|
|
consentEvidenceLink: String
|
|
lawfulBasis: ProcessingActivityRegistryLawfulBasis
|
|
recipients: String
|
|
location: String
|
|
internationalTransfers: Boolean
|
|
transferSafeguards: ProcessingActivityRegistryTransferSafeguards
|
|
retentionPeriod: String
|
|
securityMeasures: String
|
|
dataProtectionImpactAssessment: ProcessingActivityRegistryDataProtectionImpactAssessment
|
|
transferImpactAssessment: ProcessingActivityRegistryTransferImpactAssessment
|
|
}
|
|
|
|
input DeleteProcessingActivityRegistryInput {
|
|
processingActivityRegistryId: ID!
|
|
}
|
|
|
|
input CreateSnapshotInput {
|
|
organizationId: ID!
|
|
name: String!
|
|
description: String
|
|
type: SnapshotsType!
|
|
}
|
|
|
|
input DeleteSnapshotInput {
|
|
snapshotId: ID!
|
|
}
|
|
|
|
# Payload Types
|
|
type CreateOrganizationPayload {
|
|
organizationEdge: OrganizationEdge!
|
|
}
|
|
|
|
type UpdateOrganizationPayload {
|
|
organization: Organization!
|
|
}
|
|
|
|
type DeleteOrganizationPayload {
|
|
deletedOrganizationId: ID!
|
|
}
|
|
|
|
type UpdateTrustCenterPayload {
|
|
trustCenter: TrustCenter!
|
|
}
|
|
|
|
type CreateTrustCenterAccessPayload {
|
|
trustCenterAccessEdge: TrustCenterAccessEdge!
|
|
}
|
|
|
|
type UpdateTrustCenterAccessPayload {
|
|
trustCenterAccess: TrustCenterAccess!
|
|
}
|
|
|
|
type DeleteTrustCenterAccessPayload {
|
|
deletedTrustCenterAccessId: ID!
|
|
}
|
|
|
|
type CreateControlPayload {
|
|
controlEdge: ControlEdge!
|
|
}
|
|
|
|
type UpdateControlPayload {
|
|
control: Control!
|
|
}
|
|
|
|
type DeleteControlPayload {
|
|
deletedControlId: ID!
|
|
}
|
|
|
|
type CreateVendorPayload {
|
|
vendorEdge: VendorEdge!
|
|
}
|
|
|
|
type UpdateVendorPayload {
|
|
vendor: Vendor!
|
|
}
|
|
|
|
type DeleteVendorPayload {
|
|
deletedVendorId: ID!
|
|
}
|
|
|
|
type CreateVendorContactPayload {
|
|
vendorContactEdge: VendorContactEdge!
|
|
}
|
|
|
|
type UpdateVendorContactPayload {
|
|
vendorContact: VendorContact!
|
|
}
|
|
|
|
type DeleteVendorContactPayload {
|
|
deletedVendorContactId: ID!
|
|
}
|
|
|
|
type CreateVendorServicePayload {
|
|
vendorServiceEdge: VendorServiceEdge!
|
|
}
|
|
|
|
type UpdateVendorServicePayload {
|
|
vendorService: VendorService!
|
|
}
|
|
|
|
type DeleteVendorServicePayload {
|
|
deletedVendorServiceId: 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 CreateMeasurePayload {
|
|
measureEdge: MeasureEdge!
|
|
}
|
|
|
|
type UpdateMeasurePayload {
|
|
measure: Measure!
|
|
}
|
|
|
|
type ImportMeasurePayload {
|
|
measureEdges: [MeasureEdge!]!
|
|
}
|
|
|
|
type CreateTaskPayload {
|
|
taskEdge: TaskEdge!
|
|
}
|
|
|
|
type UpdateTaskPayload {
|
|
task: Task!
|
|
}
|
|
|
|
type DeleteTaskPayload {
|
|
deletedTaskId: ID!
|
|
}
|
|
|
|
type AssignTaskPayload {
|
|
task: Task!
|
|
}
|
|
|
|
type UnassignTaskPayload {
|
|
task: Task!
|
|
}
|
|
|
|
type CreateControlMeasureMappingPayload {
|
|
controlEdge: ControlEdge!
|
|
measureEdge: MeasureEdge!
|
|
}
|
|
|
|
type CreateControlDocumentMappingPayload {
|
|
controlEdge: ControlEdge!
|
|
documentEdge: DocumentEdge!
|
|
}
|
|
|
|
type DeleteControlMeasureMappingPayload {
|
|
deletedControlId: ID!
|
|
deletedMeasureId: ID!
|
|
}
|
|
|
|
type DeleteControlDocumentMappingPayload {
|
|
deletedControlId: ID!
|
|
deletedDocumentId: ID!
|
|
}
|
|
|
|
type CreateControlAuditMappingPayload {
|
|
controlEdge: ControlEdge!
|
|
auditEdge: AuditEdge!
|
|
}
|
|
|
|
type DeleteControlAuditMappingPayload {
|
|
deletedControlId: ID!
|
|
deletedAuditId: ID!
|
|
}
|
|
|
|
type CreateControlSnapshotMappingPayload {
|
|
controlEdge: ControlEdge!
|
|
snapshotEdge: SnapshotEdge!
|
|
}
|
|
|
|
type DeleteControlSnapshotMappingPayload {
|
|
deletedControlId: ID!
|
|
deletedSnapshotId: ID!
|
|
}
|
|
|
|
type CreateRiskPayload {
|
|
riskEdge: RiskEdge!
|
|
}
|
|
|
|
type UpdateRiskPayload {
|
|
risk: Risk!
|
|
}
|
|
|
|
type DeleteRiskPayload {
|
|
deletedRiskId: ID!
|
|
}
|
|
|
|
type CreateRiskMeasureMappingPayload {
|
|
riskEdge: RiskEdge!
|
|
measureEdge: MeasureEdge!
|
|
}
|
|
|
|
type DeleteRiskMeasureMappingPayload {
|
|
deletedMeasureId: ID!
|
|
deletedRiskId: ID!
|
|
}
|
|
|
|
type CreateRiskDocumentMappingPayload {
|
|
riskEdge: RiskEdge!
|
|
documentEdge: DocumentEdge!
|
|
}
|
|
|
|
type DeleteRiskDocumentMappingPayload {
|
|
deletedRiskId: ID!
|
|
deletedDocumentId: ID!
|
|
}
|
|
|
|
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 UploadVendorBusinessAssociateAgreementPayload {
|
|
vendorBusinessAssociateAgreement: VendorBusinessAssociateAgreement!
|
|
}
|
|
|
|
type UpdateVendorBusinessAssociateAgreementPayload {
|
|
vendorBusinessAssociateAgreement: VendorBusinessAssociateAgreement!
|
|
}
|
|
|
|
type DeleteVendorBusinessAssociateAgreementPayload {
|
|
deletedVendorId: ID!
|
|
}
|
|
|
|
type UploadVendorDataPrivacyAgreementPayload {
|
|
vendorDataPrivacyAgreement: VendorDataPrivacyAgreement!
|
|
}
|
|
|
|
type UpdateVendorDataPrivacyAgreementPayload {
|
|
vendorDataPrivacyAgreement: VendorDataPrivacyAgreement!
|
|
}
|
|
|
|
type DeleteVendorDataPrivacyAgreementPayload {
|
|
deletedVendorId: ID!
|
|
}
|
|
|
|
type CreateDocumentPayload {
|
|
documentEdge: DocumentEdge!
|
|
documentVersionEdge: DocumentVersionEdge!
|
|
}
|
|
|
|
type ExportDocumentVersionPDFPayload {
|
|
data: String!
|
|
}
|
|
|
|
type UpdateDocumentPayload {
|
|
document: Document!
|
|
}
|
|
|
|
type DeleteDocumentPayload {
|
|
deletedDocumentId: 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!
|
|
}
|
|
|
|
input DeleteMeasureInput {
|
|
measureId: ID!
|
|
}
|
|
|
|
type DeleteMeasurePayload {
|
|
deletedMeasureId: ID!
|
|
}
|
|
|
|
type DocumentVersion implements Node {
|
|
id: ID!
|
|
document: Document! @goField(forceResolver: true)
|
|
status: DocumentStatus!
|
|
version: Int!
|
|
content: String!
|
|
changelog: String!
|
|
title: String!
|
|
owner: People! @goField(forceResolver: true)
|
|
|
|
signatures(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: DocumentVersionSignatureOrder
|
|
): DocumentVersionSignatureConnection! @goField(forceResolver: true)
|
|
|
|
publishedBy: People @goField(forceResolver: true)
|
|
publishedAt: Datetime
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type DocumentVersionSignatureConnection {
|
|
edges: [DocumentVersionSignatureEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type DocumentVersionSignatureEdge {
|
|
cursor: CursorKey!
|
|
node: DocumentVersionSignature!
|
|
}
|
|
|
|
input DocumentVersionSignatureOrder {
|
|
field: DocumentVersionSignatureOrderField!
|
|
direction: OrderDirection!
|
|
}
|
|
|
|
enum DocumentVersionSignatureState
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/coredata.DocumentVersionSignatureState"
|
|
) {
|
|
REQUESTED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DocumentVersionSignatureStateRequested"
|
|
)
|
|
SIGNED
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DocumentVersionSignatureStateSigned"
|
|
)
|
|
}
|
|
|
|
enum DocumentVersionSignatureOrderField
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/coredata.DocumentVersionSignatureOrderField"
|
|
) {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DocumentVersionSignatureOrderFieldCreatedAt"
|
|
)
|
|
SIGNED_AT
|
|
@goEnum(
|
|
value: "github.com/getprobo/probo/pkg/coredata.DocumentVersionSignatureOrderFieldSignedAt"
|
|
)
|
|
}
|
|
|
|
type DocumentVersionSignature implements Node {
|
|
id: ID!
|
|
documentVersion: DocumentVersion! @goField(forceResolver: true)
|
|
state: DocumentVersionSignatureState!
|
|
signedBy: People! @goField(forceResolver: true)
|
|
signedAt: Datetime
|
|
requestedAt: Datetime!
|
|
requestedBy: People! @goField(forceResolver: true)
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
input RequestSignatureInput {
|
|
documentVersionId: ID!
|
|
signatoryId: ID!
|
|
}
|
|
|
|
input BulkRequestSignaturesInput {
|
|
documentIds: [ID!]!
|
|
signatoryIds: [ID!]!
|
|
}
|
|
|
|
type RequestSignaturePayload {
|
|
documentVersionSignatureEdge: DocumentVersionSignatureEdge!
|
|
}
|
|
|
|
type BulkRequestSignaturesPayload {
|
|
documentVersionSignatureEdges: [DocumentVersionSignatureEdge!]!
|
|
}
|
|
|
|
input BulkPublishDocumentVersionsInput {
|
|
documentIds: [ID!]!
|
|
changelog: String!
|
|
}
|
|
|
|
type BulkPublishDocumentVersionsPayload {
|
|
documentVersionEdges: [DocumentVersionEdge!]!
|
|
documentEdges: [DocumentEdge!]!
|
|
}
|
|
|
|
input PublishDocumentVersionInput {
|
|
documentId: ID!
|
|
changelog: String
|
|
}
|
|
|
|
type PublishDocumentVersionPayload {
|
|
documentVersion: DocumentVersion!
|
|
document: Document!
|
|
}
|
|
|
|
type CreateDraftDocumentVersionPayload {
|
|
documentVersionEdge: DocumentVersionEdge!
|
|
}
|
|
|
|
type DeleteDraftDocumentVersionPayload {
|
|
deletedDocumentVersionId: ID!
|
|
}
|
|
|
|
input CreateDraftDocumentVersionInput {
|
|
documentID: ID!
|
|
}
|
|
|
|
input DeleteDraftDocumentVersionInput {
|
|
documentVersionId: ID!
|
|
}
|
|
|
|
input UpdateDocumentVersionInput {
|
|
documentVersionId: ID!
|
|
content: String!
|
|
}
|
|
|
|
input CancelSignatureRequestInput {
|
|
documentVersionSignatureId: ID!
|
|
}
|
|
|
|
type UpdateDocumentVersionPayload {
|
|
documentVersion: DocumentVersion!
|
|
}
|
|
|
|
input SendSigningNotificationsInput {
|
|
organizationId: ID!
|
|
}
|
|
|
|
type SendSigningNotificationsPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type CancelSignatureRequestPayload {
|
|
deletedDocumentVersionSignatureId: ID!
|
|
}
|
|
|
|
type UploadTaskEvidencePayload {
|
|
evidenceEdge: EvidenceEdge!
|
|
}
|
|
|
|
type UploadMeasureEvidencePayload {
|
|
evidenceEdge: EvidenceEdge!
|
|
}
|
|
|
|
input UploadTaskEvidenceInput {
|
|
taskId: ID!
|
|
file: Upload!
|
|
}
|
|
|
|
input UploadMeasureEvidenceInput {
|
|
measureId: ID!
|
|
file: Upload!
|
|
}
|
|
|
|
input GenerateDocumentChangelogInput {
|
|
documentId: ID!
|
|
}
|
|
|
|
type GenerateDocumentChangelogPayload {
|
|
changelog: String!
|
|
}
|
|
|
|
input AssessVendorInput {
|
|
id: ID!
|
|
websiteUrl: String!
|
|
}
|
|
|
|
type AssessVendorPayload {
|
|
vendor: Vendor!
|
|
}
|
|
|
|
type Asset implements Node {
|
|
id: ID!
|
|
snapshotId: ID
|
|
name: String!
|
|
amount: Int!
|
|
owner: People! @goField(forceResolver: true)
|
|
vendors(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: VendorOrder
|
|
): VendorConnection! @goField(forceResolver: true)
|
|
criticity: CriticityLevel!
|
|
assetType: AssetType! @goField(forceResolver: true)
|
|
dataTypesStored: String!
|
|
organization: Organization! @goField(forceResolver: true)
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
type AssetConnection
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.AssetConnection"
|
|
) {
|
|
totalCount: Int! @goField(forceResolver: true)
|
|
edges: [AssetEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type AssetEdge {
|
|
cursor: CursorKey!
|
|
node: Asset!
|
|
}
|
|
|
|
input AssetOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.AssetOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: AssetOrderField!
|
|
}
|
|
|
|
input CreateAssetInput {
|
|
organizationId: ID!
|
|
name: String!
|
|
amount: Int!
|
|
ownerId: ID!
|
|
criticity: CriticityLevel! = MEDIUM
|
|
assetType: AssetType!
|
|
dataTypesStored: String!
|
|
vendorIds: [ID!]
|
|
}
|
|
|
|
input UpdateAssetInput {
|
|
id: ID!
|
|
name: String
|
|
amount: Int
|
|
ownerId: ID
|
|
criticity: CriticityLevel
|
|
assetType: AssetType
|
|
dataTypesStored: String
|
|
vendorIds: [ID!]
|
|
}
|
|
|
|
input DeleteAssetInput {
|
|
assetId: ID!
|
|
}
|
|
|
|
type CreateAssetPayload {
|
|
assetEdge: AssetEdge!
|
|
}
|
|
|
|
type UpdateAssetPayload {
|
|
asset: Asset!
|
|
}
|
|
|
|
type DeleteAssetPayload {
|
|
deletedAssetId: ID!
|
|
}
|
|
|
|
type Datum implements Node {
|
|
id: ID!
|
|
snapshotId: ID
|
|
name: String!
|
|
dataClassification: DataClassification!
|
|
owner: People! @goField(forceResolver: true)
|
|
vendors(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: VendorOrder
|
|
): VendorConnection! @goField(forceResolver: true)
|
|
organization: Organization! @goField(forceResolver: true)
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
}
|
|
|
|
input DatumOrder
|
|
@goModel(
|
|
model: "github.com/getprobo/probo/pkg/server/api/console/v1/types.DatumOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: DatumOrderField!
|
|
}
|
|
|
|
input CreateDatumInput {
|
|
organizationId: ID!
|
|
name: String!
|
|
dataClassification: DataClassification!
|
|
ownerId: ID!
|
|
vendorIds: [ID!]
|
|
}
|
|
|
|
input UpdateDatumInput {
|
|
id: ID!
|
|
name: String
|
|
dataClassification: DataClassification
|
|
ownerId: ID
|
|
vendorIds: [ID!]
|
|
}
|
|
|
|
input DeleteDatumInput {
|
|
datumId: ID!
|
|
}
|
|
|
|
type CreateDatumPayload {
|
|
datumEdge: DatumEdge!
|
|
}
|
|
|
|
type UpdateDatumPayload {
|
|
datum: Datum!
|
|
}
|
|
|
|
type DeleteDatumPayload {
|
|
deletedDatumId: ID!
|
|
}
|
|
|
|
type CreateAuditPayload {
|
|
auditEdge: AuditEdge!
|
|
}
|
|
|
|
type UpdateAuditPayload {
|
|
audit: Audit!
|
|
}
|
|
|
|
type DeleteAuditPayload {
|
|
deletedAuditId: ID!
|
|
}
|
|
|
|
type UploadAuditReportPayload {
|
|
audit: Audit!
|
|
}
|
|
|
|
type DeleteAuditReportPayload {
|
|
audit: Audit!
|
|
}
|
|
|
|
# Nonconformity Registry payload types
|
|
type CreateNonconformityRegistryPayload {
|
|
nonconformityRegistryEdge: NonconformityRegistryEdge!
|
|
}
|
|
|
|
type UpdateNonconformityRegistryPayload {
|
|
nonconformityRegistry: NonconformityRegistry!
|
|
}
|
|
|
|
type DeleteNonconformityRegistryPayload {
|
|
deletedNonconformityRegistryId: ID!
|
|
}
|
|
|
|
type CreateComplianceRegistryPayload {
|
|
complianceRegistryEdge: ComplianceRegistryEdge!
|
|
}
|
|
|
|
type UpdateComplianceRegistryPayload {
|
|
complianceRegistry: ComplianceRegistry!
|
|
}
|
|
|
|
type DeleteComplianceRegistryPayload {
|
|
deletedComplianceRegistryId: ID!
|
|
}
|
|
|
|
type CreateContinualImprovementRegistryPayload {
|
|
continualImprovementRegistryEdge: ContinualImprovementRegistryEdge!
|
|
}
|
|
|
|
type UpdateContinualImprovementRegistryPayload {
|
|
continualImprovementRegistry: ContinualImprovementRegistry!
|
|
}
|
|
|
|
type DeleteContinualImprovementRegistryPayload {
|
|
deletedContinualImprovementRegistryId: ID!
|
|
}
|
|
|
|
type CreateProcessingActivityRegistryPayload {
|
|
processingActivityRegistryEdge: ProcessingActivityRegistryEdge!
|
|
}
|
|
|
|
type UpdateProcessingActivityRegistryPayload {
|
|
processingActivityRegistry: ProcessingActivityRegistry!
|
|
}
|
|
|
|
type DeleteProcessingActivityRegistryPayload {
|
|
deletedProcessingActivityRegistryId: ID!
|
|
}
|
|
|
|
type CreateSnapshotPayload {
|
|
snapshotEdge: SnapshotEdge!
|
|
}
|
|
|
|
type DeleteSnapshotPayload {
|
|
deletedSnapshotId: ID!
|
|
}
|
|
`, BuiltIn: false},
|
|
}
|
|
var parsedSchema = gqlparser.MustLoadSchema(sources...)
|
|
|
|
// endregion ************************** generated!.gotpl **************************
|
|
|
|
// region ***************************** args.gotpl *****************************
|
|
|
|
func (ec *executionContext) field_Asset_vendors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Asset_vendors_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Asset_vendors_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Asset_vendors_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Asset_vendors_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Asset_vendors_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Asset_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_Asset_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_Asset_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_Asset_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_Asset_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_Audit_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Audit_controls_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Audit_controls_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Audit_controls_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Audit_controls_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Audit_controls_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Audit_controls_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Audit_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_Audit_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_Audit_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_Audit_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_Audit_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_Audit_controls_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ControlFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOControlFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ControlFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_audits_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Control_audits_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Control_audits_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Control_audits_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Control_audits_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Control_audits_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Control_audits_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_audits_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_audits_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_audits_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_audits_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.AuditOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOAuditOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.AuditOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_documents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Control_documents_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Control_documents_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Control_documents_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Control_documents_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Control_documents_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Control_documents_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Control_documents_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_documents_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_documents_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_documents_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_documents_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.DocumentOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalODocumentOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.DocumentOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_documents_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.DocumentFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalODocumentFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.DocumentFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_measures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Control_measures_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Control_measures_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Control_measures_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Control_measures_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Control_measures_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Control_measures_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Control_measures_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_measures_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_measures_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_measures_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_measures_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.MeasureOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOMeasureOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.MeasureOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_measures_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.MeasureFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOMeasureFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.MeasureFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Control_snapshots_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Control_snapshots_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Control_snapshots_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Control_snapshots_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Control_snapshots_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Control_snapshots_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Control_snapshots_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_snapshots_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_snapshots_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_snapshots_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_snapshots_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.SnapshotOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOSnapshotOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.SnapshotOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Datum_vendors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Datum_vendors_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Datum_vendors_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Datum_vendors_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Datum_vendors_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Datum_vendors_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Datum_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_Datum_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_Datum_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_Datum_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_Datum_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_DocumentVersion_signatures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_DocumentVersion_signatures_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_DocumentVersion_signatures_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_DocumentVersion_signatures_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_DocumentVersion_signatures_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_DocumentVersion_signatures_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_DocumentVersion_signatures_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_DocumentVersion_signatures_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_DocumentVersion_signatures_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_DocumentVersion_signatures_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_DocumentVersion_signatures_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.DocumentVersionSignatureOrder, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalODocumentVersionSignatureOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureOrder(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.DocumentVersionSignatureOrder
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Document_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Document_controls_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Document_controls_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Document_controls_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Document_controls_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Document_controls_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Document_controls_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Document_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_Document_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_Document_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_Document_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_Document_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_Document_controls_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ControlFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOControlFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ControlFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Document_versions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Document_versions_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Document_versions_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Document_versions_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Document_versions_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Document_versions_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Document_versions_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Document_versions_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_Document_versions_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_Document_versions_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_Document_versions_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_Document_versions_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.DocumentVersionOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalODocumentVersionOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.DocumentVersionOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Document_versions_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.DocumentVersionFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalODocumentVersionFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.DocumentVersionFilter
|
|
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
|
|
arg5, err := ec.field_Framework_controls_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
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_Framework_controls_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ControlFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOControlFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ControlFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Measure_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Measure_controls_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Measure_controls_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Measure_controls_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Measure_controls_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Measure_controls_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Measure_controls_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Measure_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_Measure_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_Measure_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_Measure_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_Measure_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_Measure_controls_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ControlFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOControlFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ControlFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Measure_evidences_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Measure_evidences_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Measure_evidences_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Measure_evidences_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Measure_evidences_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Measure_evidences_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Measure_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_Measure_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_Measure_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_Measure_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_Measure_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_Measure_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Measure_risks_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Measure_risks_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Measure_risks_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Measure_risks_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Measure_risks_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Measure_risks_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Measure_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_Measure_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_Measure_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_Measure_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_Measure_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_Measure_risks_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.RiskFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalORiskFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.RiskFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Measure_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Measure_tasks_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Measure_tasks_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Measure_tasks_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Measure_tasks_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Measure_tasks_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Measure_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_Measure_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_Measure_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_Measure_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_Measure_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_assessVendor_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_assessVendor_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_assessVendor_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.AssessVendorInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNAssessVendorInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssessVendorInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.AssessVendorInput
|
|
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_bulkPublishDocumentVersions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_bulkPublishDocumentVersions_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_bulkPublishDocumentVersions_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.BulkPublishDocumentVersionsInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNBulkPublishDocumentVersionsInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkPublishDocumentVersionsInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.BulkPublishDocumentVersionsInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_bulkRequestSignatures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_bulkRequestSignatures_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_bulkRequestSignatures_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.BulkRequestSignaturesInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNBulkRequestSignaturesInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkRequestSignaturesInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.BulkRequestSignaturesInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_cancelSignatureRequest_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_cancelSignatureRequest_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_cancelSignatureRequest_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CancelSignatureRequestInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCancelSignatureRequestInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCancelSignatureRequestInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CancelSignatureRequestInput
|
|
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_createAsset_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createAsset_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createAsset_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateAssetInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateAssetInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAssetInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateAssetInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createAudit_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createAudit_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createAudit_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateAuditInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateAuditInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAuditInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateAuditInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createComplianceRegistry_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createComplianceRegistry_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createComplianceRegistry_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateComplianceRegistryInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateComplianceRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceRegistryInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateComplianceRegistryInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createContinualImprovementRegistry_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createContinualImprovementRegistry_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createContinualImprovementRegistry_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateContinualImprovementRegistryInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateContinualImprovementRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateContinualImprovementRegistryInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateContinualImprovementRegistryInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createControlAuditMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createControlAuditMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createControlAuditMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateControlAuditMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateControlAuditMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlAuditMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateControlAuditMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createControlDocumentMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createControlDocumentMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createControlDocumentMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateControlDocumentMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateControlDocumentMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlDocumentMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateControlDocumentMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createControlMeasureMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createControlMeasureMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createControlMeasureMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateControlMeasureMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateControlMeasureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMeasureMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateControlMeasureMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createControlSnapshotMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createControlSnapshotMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createControlSnapshotMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateControlSnapshotMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateControlSnapshotMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlSnapshotMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateControlSnapshotMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createControl_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createControl_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createControl_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateControlInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateControlInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateControlInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createDatum_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createDatum_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createDatum_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateDatumInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateDatumInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDatumInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateDatumInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createDocument_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createDocument_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createDocument_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateDocumentInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateDocumentInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDocumentInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateDocumentInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createDraftDocumentVersion_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createDraftDocumentVersion_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createDraftDocumentVersion_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateDraftDocumentVersionInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateDraftDocumentVersionInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDraftDocumentVersionInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateDraftDocumentVersionInput
|
|
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_createMeasure_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createMeasure_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createMeasure_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateMeasureInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateMeasureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeasureInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateMeasureInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createNonconformityRegistry_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createNonconformityRegistry_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createNonconformityRegistry_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateNonconformityRegistryInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateNonconformityRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateNonconformityRegistryInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateNonconformityRegistryInput
|
|
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_createProcessingActivityRegistry_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createProcessingActivityRegistry_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createProcessingActivityRegistry_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateProcessingActivityRegistryInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateProcessingActivityRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateProcessingActivityRegistryInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateProcessingActivityRegistryInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createRiskDocumentMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createRiskDocumentMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createRiskDocumentMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateRiskDocumentMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateRiskDocumentMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskDocumentMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateRiskDocumentMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createRiskMeasureMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createRiskMeasureMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createRiskMeasureMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateRiskMeasureMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateRiskMeasureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMeasureMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateRiskMeasureMappingInput
|
|
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_createSnapshot_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createSnapshot_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createSnapshot_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateSnapshotInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateSnapshotInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateSnapshotInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateSnapshotInput
|
|
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_createTrustCenterAccess_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createTrustCenterAccess_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createTrustCenterAccess_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateTrustCenterAccessInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateTrustCenterAccessInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterAccessInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateTrustCenterAccessInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createVendorContact_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createVendorContact_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createVendorContact_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateVendorContactInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateVendorContactInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorContactInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateVendorContactInput
|
|
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_createVendorService_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_createVendorService_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_createVendorService_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.CreateVendorServiceInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNCreateVendorServiceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorServiceInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.CreateVendorServiceInput
|
|
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_deleteAsset_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteAsset_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteAsset_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteAssetInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteAssetInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAssetInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteAssetInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteAuditReport_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteAuditReport_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteAuditReport_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteAuditReportInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteAuditReportInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditReportInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteAuditReportInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteAudit_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteAudit_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteAudit_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteAuditInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteAuditInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteAuditInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteComplianceRegistry_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteComplianceRegistry_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteComplianceRegistry_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteComplianceRegistryInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteComplianceRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceRegistryInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteComplianceRegistryInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteContinualImprovementRegistry_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteContinualImprovementRegistry_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteContinualImprovementRegistry_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteContinualImprovementRegistryInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteContinualImprovementRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteContinualImprovementRegistryInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteContinualImprovementRegistryInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteControlAuditMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteControlAuditMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteControlAuditMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteControlAuditMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteControlAuditMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlAuditMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteControlAuditMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteControlDocumentMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteControlDocumentMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteControlDocumentMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteControlDocumentMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteControlDocumentMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlDocumentMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteControlDocumentMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteControlMeasureMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteControlMeasureMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteControlMeasureMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteControlMeasureMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteControlMeasureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMeasureMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteControlMeasureMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteControlSnapshotMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteControlSnapshotMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteControlSnapshotMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteControlSnapshotMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteControlSnapshotMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlSnapshotMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteControlSnapshotMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteControl_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteControl_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteControl_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteControlInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteControlInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteControlInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteDatum_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteDatum_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteDatum_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteDatumInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteDatumInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDatumInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteDatumInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteDocument_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteDocument_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteDocument_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteDocumentInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteDocumentInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDocumentInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteDocumentInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteDraftDocumentVersion_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteDraftDocumentVersion_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteDraftDocumentVersion_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteDraftDocumentVersionInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteDraftDocumentVersionInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDraftDocumentVersionInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteDraftDocumentVersionInput
|
|
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_deleteMeasure_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteMeasure_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteMeasure_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteMeasureInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteMeasureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeasureInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteMeasureInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteNonconformityRegistry_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteNonconformityRegistry_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteNonconformityRegistry_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteNonconformityRegistryInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteNonconformityRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteNonconformityRegistryInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteNonconformityRegistryInput
|
|
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_deleteProcessingActivityRegistry_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteProcessingActivityRegistry_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteProcessingActivityRegistry_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteProcessingActivityRegistryInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteProcessingActivityRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteProcessingActivityRegistryInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteProcessingActivityRegistryInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteRiskDocumentMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteRiskDocumentMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteRiskDocumentMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteRiskDocumentMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteRiskDocumentMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskDocumentMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteRiskDocumentMappingInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteRiskMeasureMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteRiskMeasureMapping_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteRiskMeasureMapping_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteRiskMeasureMappingInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteRiskMeasureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMeasureMappingInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteRiskMeasureMappingInput
|
|
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_deleteSnapshot_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteSnapshot_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteSnapshot_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteSnapshotInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteSnapshotInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteSnapshotInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteSnapshotInput
|
|
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_deleteTrustCenterAccess_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteTrustCenterAccess_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteTrustCenterAccess_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteTrustCenterAccessInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteTrustCenterAccessInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterAccessInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteTrustCenterAccessInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteVendorBusinessAssociateAgreement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteVendorBusinessAssociateAgreement_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteVendorBusinessAssociateAgreement_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteVendorBusinessAssociateAgreementInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteVendorBusinessAssociateAgreementInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorBusinessAssociateAgreementInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteVendorBusinessAssociateAgreementInput
|
|
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_deleteVendorContact_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteVendorContact_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteVendorContact_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteVendorContactInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteVendorContactInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorContactInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteVendorContactInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteVendorDataPrivacyAgreement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteVendorDataPrivacyAgreement_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteVendorDataPrivacyAgreement_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteVendorDataPrivacyAgreementInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteVendorDataPrivacyAgreementInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorDataPrivacyAgreementInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteVendorDataPrivacyAgreementInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteVendorService_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_deleteVendorService_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_deleteVendorService_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.DeleteVendorServiceInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNDeleteVendorServiceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorServiceInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.DeleteVendorServiceInput
|
|
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_exportDocumentVersionPDF_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_exportDocumentVersionPDF_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_exportDocumentVersionPDF_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.ExportDocumentVersionPDFInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNExportDocumentVersionPDFInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDocumentVersionPDFInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.ExportDocumentVersionPDFInput
|
|
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_generateDocumentChangelog_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_generateDocumentChangelog_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_generateDocumentChangelog_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.GenerateDocumentChangelogInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNGenerateDocumentChangelogInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateDocumentChangelogInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.GenerateDocumentChangelogInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_generateFrameworkStateOfApplicability_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_generateFrameworkStateOfApplicability_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_generateFrameworkStateOfApplicability_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.GenerateFrameworkStateOfApplicabilityInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNGenerateFrameworkStateOfApplicabilityInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateFrameworkStateOfApplicabilityInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.GenerateFrameworkStateOfApplicabilityInput
|
|
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_importMeasure_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_importMeasure_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_importMeasure_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.ImportMeasureInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNImportMeasureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMeasureInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.ImportMeasureInput
|
|
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_publishDocumentVersion_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_publishDocumentVersion_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_publishDocumentVersion_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.PublishDocumentVersionInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNPublishDocumentVersionInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPublishDocumentVersionInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.PublishDocumentVersionInput
|
|
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_requestSignature_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_requestSignature_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_requestSignature_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.RequestSignatureInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNRequestSignatureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestSignatureInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.RequestSignatureInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_sendSigningNotifications_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_sendSigningNotifications_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_sendSigningNotifications_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.SendSigningNotificationsInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNSendSigningNotificationsInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendSigningNotificationsInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.SendSigningNotificationsInput
|
|
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_updateAsset_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateAsset_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateAsset_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateAssetInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateAssetInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAssetInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateAssetInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateAudit_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateAudit_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateAudit_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateAuditInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateAuditInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAuditInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateAuditInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateComplianceRegistry_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateComplianceRegistry_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateComplianceRegistry_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateComplianceRegistryInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateComplianceRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceRegistryInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateComplianceRegistryInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateContinualImprovementRegistry_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateContinualImprovementRegistry_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateContinualImprovementRegistry_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateContinualImprovementRegistryInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateContinualImprovementRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateContinualImprovementRegistryInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateContinualImprovementRegistryInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateControl_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateControl_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateControl_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateControlInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateControlInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateControlInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateControlInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateDatum_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateDatum_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateDatum_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateDatumInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateDatumInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDatumInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateDatumInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateDocumentVersion_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateDocumentVersion_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateDocumentVersion_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateDocumentVersionInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateDocumentVersionInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentVersionInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateDocumentVersionInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateDocument_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateDocument_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateDocument_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateDocumentInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateDocumentInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateDocumentInput
|
|
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_updateMeasure_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateMeasure_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateMeasure_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateMeasureInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateMeasureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeasureInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateMeasureInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateNonconformityRegistry_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateNonconformityRegistry_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateNonconformityRegistry_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateNonconformityRegistryInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateNonconformityRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateNonconformityRegistryInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateNonconformityRegistryInput
|
|
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_updateProcessingActivityRegistry_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateProcessingActivityRegistry_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateProcessingActivityRegistry_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateProcessingActivityRegistryInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateProcessingActivityRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateProcessingActivityRegistryInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateProcessingActivityRegistryInput
|
|
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_updateTrustCenterAccess_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateTrustCenterAccess_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateTrustCenterAccess_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateTrustCenterAccessInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateTrustCenterAccessInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterAccessInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateTrustCenterAccessInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateTrustCenter_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateTrustCenter_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateTrustCenter_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateTrustCenterInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateTrustCenterInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateTrustCenterInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateVendorBusinessAssociateAgreement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateVendorBusinessAssociateAgreement_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateVendorBusinessAssociateAgreement_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateVendorBusinessAssociateAgreementInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateVendorBusinessAssociateAgreementInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorBusinessAssociateAgreementInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateVendorBusinessAssociateAgreementInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateVendorContact_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateVendorContact_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateVendorContact_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateVendorContactInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateVendorContactInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorContactInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateVendorContactInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateVendorDataPrivacyAgreement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateVendorDataPrivacyAgreement_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateVendorDataPrivacyAgreement_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateVendorDataPrivacyAgreementInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateVendorDataPrivacyAgreementInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorDataPrivacyAgreementInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateVendorDataPrivacyAgreementInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateVendorService_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_updateVendorService_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_updateVendorService_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UpdateVendorServiceInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUpdateVendorServiceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorServiceInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UpdateVendorServiceInput
|
|
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_uploadAuditReport_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_uploadAuditReport_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_uploadAuditReport_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UploadAuditReportInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUploadAuditReportInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadAuditReportInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UploadAuditReportInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_uploadMeasureEvidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_uploadMeasureEvidence_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_uploadMeasureEvidence_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UploadMeasureEvidenceInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUploadMeasureEvidenceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadMeasureEvidenceInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UploadMeasureEvidenceInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_uploadTaskEvidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_uploadTaskEvidence_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_uploadTaskEvidence_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UploadTaskEvidenceInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUploadTaskEvidenceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadTaskEvidenceInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UploadTaskEvidenceInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_uploadVendorBusinessAssociateAgreement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_uploadVendorBusinessAssociateAgreement_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_uploadVendorBusinessAssociateAgreement_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UploadVendorBusinessAssociateAgreementInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUploadVendorBusinessAssociateAgreementInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorBusinessAssociateAgreementInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UploadVendorBusinessAssociateAgreementInput
|
|
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_Mutation_uploadVendorDataPrivacyAgreement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Mutation_uploadVendorDataPrivacyAgreement_argsInput(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Mutation_uploadVendorDataPrivacyAgreement_argsInput(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (types.UploadVendorDataPrivacyAgreementInput, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input"))
|
|
if tmp, ok := rawArgs["input"]; ok {
|
|
return ec.unmarshalNUploadVendorDataPrivacyAgreementInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorDataPrivacyAgreementInput(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal types.UploadVendorDataPrivacyAgreementInput
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_assets_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_assets_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_assets_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_assets_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_assets_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Organization_assets_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_assets_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_assets_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_assets_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_assets_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_assets_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.AssetOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOAssetOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.AssetOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_assets_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.AssetFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOAssetFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.AssetFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_audits_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_audits_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_audits_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_audits_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_audits_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_audits_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_audits_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_audits_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_audits_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_audits_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_audits_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.AuditOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOAuditOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.AuditOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_complianceRegistries_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_complianceRegistries_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_complianceRegistries_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_complianceRegistries_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_complianceRegistries_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_complianceRegistries_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Organization_complianceRegistries_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_complianceRegistries_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_complianceRegistries_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_complianceRegistries_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_complianceRegistries_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_complianceRegistries_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ComplianceRegistryOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOComplianceRegistryOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistryOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ComplianceRegistryOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_complianceRegistries_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ComplianceRegistryFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOComplianceRegistryFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistryFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ComplianceRegistryFilter
|
|
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_continualImprovementRegistries_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_continualImprovementRegistries_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_continualImprovementRegistries_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_continualImprovementRegistries_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_continualImprovementRegistries_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_continualImprovementRegistries_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Organization_continualImprovementRegistries_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_continualImprovementRegistries_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_continualImprovementRegistries_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_continualImprovementRegistries_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_continualImprovementRegistries_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_continualImprovementRegistries_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ContinualImprovementRegistriesOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOContinualImprovementRegistriesOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistriesOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ContinualImprovementRegistriesOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_continualImprovementRegistries_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ContinualImprovementRegistryFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOContinualImprovementRegistryFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistryFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ContinualImprovementRegistryFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_controls_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_controls_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_controls_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_controls_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_controls_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Organization_controls_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_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_Organization_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_Organization_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_Organization_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_Organization_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_Organization_controls_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ControlFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOControlFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ControlFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_data_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_data_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_data_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_data_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_data_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_data_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Organization_data_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_data_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_data_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_data_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_data_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_data_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.DatumOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalODatumOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.DatumOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_data_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.DatumFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalODatumFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.DatumFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_documents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_documents_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_documents_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_documents_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_documents_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_documents_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Organization_documents_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_documents_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_documents_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_documents_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_documents_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_documents_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.DocumentOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalODocumentOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.DocumentOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_documents_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.DocumentFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalODocumentFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.DocumentFilter
|
|
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_measures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_measures_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_measures_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_measures_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_measures_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_measures_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Organization_measures_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_measures_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_measures_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_measures_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_measures_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_measures_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.MeasureOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOMeasureOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.MeasureOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_measures_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.MeasureFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOMeasureFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.MeasureFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_nonconformityRegistries_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_nonconformityRegistries_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_nonconformityRegistries_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_nonconformityRegistries_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_nonconformityRegistries_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_nonconformityRegistries_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Organization_nonconformityRegistries_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_nonconformityRegistries_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_nonconformityRegistries_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_nonconformityRegistries_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_nonconformityRegistries_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_nonconformityRegistries_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.NonconformityRegistryOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalONonconformityRegistryOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistryOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.NonconformityRegistryOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_nonconformityRegistries_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.NonconformityRegistryFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalONonconformityRegistryFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistryFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.NonconformityRegistryFilter
|
|
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
|
|
arg5, err := ec.field_Organization_peoples_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
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_peoples_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.PeopleFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOPeopleFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeopleFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.PeopleFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_processingActivityRegistries_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_processingActivityRegistries_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_processingActivityRegistries_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_processingActivityRegistries_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_processingActivityRegistries_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_processingActivityRegistries_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Organization_processingActivityRegistries_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_processingActivityRegistries_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_processingActivityRegistries_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_processingActivityRegistries_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_processingActivityRegistries_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_processingActivityRegistries_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ProcessingActivityRegistryOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOProcessingActivityRegistryOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistryOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ProcessingActivityRegistryOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_processingActivityRegistries_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ProcessingActivityRegistryFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOProcessingActivityRegistryFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistryFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ProcessingActivityRegistryFilter
|
|
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
|
|
arg5, err := ec.field_Organization_risks_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
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_risks_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.RiskFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalORiskFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.RiskFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_snapshots_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_snapshots_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_snapshots_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_snapshots_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_snapshots_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_snapshots_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_snapshots_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_snapshots_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_snapshots_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_snapshots_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_snapshots_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.SnapshotOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOSnapshotOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.SnapshotOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Organization_tasks_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Organization_tasks_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Organization_tasks_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Organization_tasks_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Organization_tasks_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Organization_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_Organization_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_Organization_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_Organization_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_Organization_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_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_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
|
|
arg5, err := ec.field_Risk_controls_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
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_controls_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ControlFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOControlFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ControlFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_documents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Risk_documents_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Risk_documents_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Risk_documents_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Risk_documents_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Risk_documents_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Risk_documents_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Risk_documents_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_documents_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_documents_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_documents_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_documents_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.DocumentOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalODocumentOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.DocumentOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_documents_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.DocumentFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalODocumentFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.DocumentFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_measures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Risk_measures_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Risk_measures_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Risk_measures_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Risk_measures_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Risk_measures_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Risk_measures_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Risk_measures_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_measures_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_measures_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_measures_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_measures_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.MeasureOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOMeasureOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.MeasureOrderBy
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Risk_measures_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.MeasureFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOMeasureFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.MeasureFilter
|
|
return zeroVal, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Snapshot_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Snapshot_controls_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Snapshot_controls_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Snapshot_controls_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Snapshot_controls_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Snapshot_controls_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := ec.field_Snapshot_controls_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Snapshot_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_Snapshot_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_Snapshot_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_Snapshot_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_Snapshot_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_Snapshot_controls_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.ControlFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOControlFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.ControlFilter
|
|
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_TrustCenter_accesses_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_TrustCenter_accesses_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_TrustCenter_accesses_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_TrustCenter_accesses_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_TrustCenter_accesses_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_TrustCenter_accesses_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_TrustCenter_accesses_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_TrustCenter_accesses_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_TrustCenter_accesses_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_TrustCenter_accesses_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_TrustCenter_accesses_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.OrderBy[coredata.TrustCenterAccessOrderField], error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOTrustCenterAccessOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.OrderBy[coredata.TrustCenterAccessOrderField]
|
|
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_contacts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Vendor_contacts_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Vendor_contacts_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Vendor_contacts_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Vendor_contacts_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Vendor_contacts_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Vendor_contacts_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_contacts_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_contacts_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_contacts_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_contacts_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.VendorContactOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOVendorContactOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.VendorContactOrderBy
|
|
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_Vendor_services_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := ec.field_Vendor_services_argsFirst(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := ec.field_Vendor_services_argsAfter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := ec.field_Vendor_services_argsLast(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := ec.field_Vendor_services_argsBefore(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := ec.field_Vendor_services_argsOrderBy(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
func (ec *executionContext) field_Vendor_services_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_services_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_services_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_services_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_services_argsOrderBy(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.VendorServiceOrderBy, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy"))
|
|
if tmp, ok := rawArgs["orderBy"]; ok {
|
|
return ec.unmarshalOVendorServiceOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceOrderBy(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.VendorServiceOrderBy
|
|
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
|
|
arg5, err := ec.field_Viewer_organizations_argsFilter(ctx, rawArgs)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
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_Viewer_organizations_argsFilter(
|
|
ctx context.Context,
|
|
rawArgs map[string]any,
|
|
) (*types.OrganizationFilter, error) {
|
|
ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("filter"))
|
|
if tmp, ok := rawArgs["filter"]; ok {
|
|
return ec.unmarshalOOrganizationFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationFilter(ctx, tmp)
|
|
}
|
|
|
|
var zeroVal *types.OrganizationFilter
|
|
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) _AssessVendorPayload_vendor(ctx context.Context, field graphql.CollectedField, obj *types.AssessVendorPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_AssessVendorPayload_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_AssessVendorPayload_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "AssessVendorPayload",
|
|
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 "category":
|
|
return ec.fieldContext_Vendor_category(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Vendor_description(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Vendor_organization(ctx, field)
|
|
case "complianceReports":
|
|
return ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
case "businessAssociateAgreement":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field)
|
|
case "dataPrivacyAgreement":
|
|
return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field)
|
|
case "contacts":
|
|
return ec.fieldContext_Vendor_contacts(ctx, field)
|
|
case "services":
|
|
return ec.fieldContext_Vendor_services(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 "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 "businessAssociateAgreementUrl":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field)
|
|
case "subprocessorsListUrl":
|
|
return ec.fieldContext_Vendor_subprocessorsListUrl(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 "showOnTrustCenter":
|
|
return ec.fieldContext_Vendor_showOnTrustCenter(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) _Asset_id(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Asset_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_Asset_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Asset",
|
|
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) _Asset_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Asset_snapshotId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SnapshotID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Asset_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Asset",
|
|
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) _Asset_name(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Asset_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_Asset_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Asset",
|
|
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) _Asset_amount(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Asset_amount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Amount, 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_Asset_amount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Asset",
|
|
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) _Asset_owner(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Asset_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.Asset().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_Asset_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Asset",
|
|
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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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) _Asset_vendors(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Asset_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.Asset().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_Asset_vendors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Asset",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "totalCount":
|
|
return ec.fieldContext_VendorConnection_totalCount(ctx, field)
|
|
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_Asset_vendors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Asset_criticity(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Asset_criticity(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Criticity, 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.CriticityLevel)
|
|
fc.Result = res
|
|
return ec.marshalNCriticityLevel2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Asset_criticity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Asset",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CriticityLevel does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Asset_assetType(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Asset_assetType(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.Asset().AssetType(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.(coredata.AssetType)
|
|
fc.Result = res
|
|
return ec.marshalNAssetType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Asset_assetType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Asset",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type AssetType does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Asset_dataTypesStored(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Asset_dataTypesStored(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DataTypesStored, 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_Asset_dataTypesStored(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Asset",
|
|
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) _Asset_organization(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Asset_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 ec.resolvers.Asset().Organization(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.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_Asset_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Asset",
|
|
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_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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _Asset_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Asset_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_Asset_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Asset",
|
|
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) _Asset_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Asset_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_Asset_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Asset",
|
|
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) _AssetConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.AssetConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_AssetConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.AssetConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_AssetConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "AssetConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _AssetConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.AssetConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_AssetConnection_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.AssetEdge)
|
|
fc.Result = res
|
|
return ec.marshalNAssetEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_AssetConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "AssetConnection",
|
|
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_AssetEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_AssetEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type AssetEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _AssetConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.AssetConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_AssetConnection_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.marshalNPageInfo2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_AssetConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "AssetConnection",
|
|
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) _AssetEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.AssetEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_AssetEdge_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_AssetEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "AssetEdge",
|
|
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) _AssetEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.AssetEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_AssetEdge_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.Asset)
|
|
fc.Result = res
|
|
return ec.marshalNAsset2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAsset(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_AssetEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "AssetEdge",
|
|
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_Asset_id(ctx, field)
|
|
case "snapshotId":
|
|
return ec.fieldContext_Asset_snapshotId(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Asset_name(ctx, field)
|
|
case "amount":
|
|
return ec.fieldContext_Asset_amount(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Asset_owner(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Asset_vendors(ctx, field)
|
|
case "criticity":
|
|
return ec.fieldContext_Asset_criticity(ctx, field)
|
|
case "assetType":
|
|
return ec.fieldContext_Asset_assetType(ctx, field)
|
|
case "dataTypesStored":
|
|
return ec.fieldContext_Asset_dataTypesStored(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Asset_organization(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Asset_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Asset_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Asset", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
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 "deadline":
|
|
return ec.fieldContext_Task_deadline(ctx, field)
|
|
case "assignedTo":
|
|
return ec.fieldContext_Task_assignedTo(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Task_organization(ctx, field)
|
|
case "measure":
|
|
return ec.fieldContext_Task_measure(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) _Audit_id(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Audit_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_Audit_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Audit",
|
|
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) _Audit_name(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Audit_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_Audit_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Audit",
|
|
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) _Audit_organization(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Audit_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 ec.resolvers.Audit().Organization(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.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_Audit_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Audit",
|
|
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_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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _Audit_framework(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Audit_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 ec.resolvers.Audit().Framework(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.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_Audit_framework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Audit",
|
|
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_Framework_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Framework_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Framework_description(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Framework_organization(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) _Audit_validFrom(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Audit_validFrom(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ValidFrom, 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_Audit_validFrom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Audit",
|
|
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) _Audit_validUntil(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Audit_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_Audit_validUntil(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Audit",
|
|
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) _Audit_report(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Audit_report(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.Audit().Report(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Report)
|
|
fc.Result = res
|
|
return ec.marshalOReport2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐReport(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Audit_report(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Audit",
|
|
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_Report_id(ctx, field)
|
|
case "objectKey":
|
|
return ec.fieldContext_Report_objectKey(ctx, field)
|
|
case "mimeType":
|
|
return ec.fieldContext_Report_mimeType(ctx, field)
|
|
case "filename":
|
|
return ec.fieldContext_Report_filename(ctx, field)
|
|
case "size":
|
|
return ec.fieldContext_Report_size(ctx, field)
|
|
case "downloadUrl":
|
|
return ec.fieldContext_Report_downloadUrl(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Report_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Report_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Report", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Audit_reportUrl(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Audit_reportUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.Audit().ReportURL(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_Audit_reportUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Audit",
|
|
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) _Audit_state(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Audit_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.AuditState)
|
|
fc.Result = res
|
|
return ec.marshalNAuditState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Audit_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Audit",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type AuditState does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Audit_controls(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Audit_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.Audit().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), fc.Args["filter"].(*types.ControlFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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_Audit_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Audit",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "totalCount":
|
|
return ec.fieldContext_ControlConnection_totalCount(ctx, field)
|
|
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_Audit_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Audit_showOnTrustCenter(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Audit_showOnTrustCenter(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ShowOnTrustCenter, 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_Audit_showOnTrustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Audit",
|
|
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) _Audit_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Audit_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_Audit_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Audit",
|
|
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) _Audit_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Audit_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_Audit_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Audit",
|
|
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) _AuditConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.AuditConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_AuditConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.AuditConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_AuditConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "AuditConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _AuditConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.AuditConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_AuditConnection_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.AuditEdge)
|
|
fc.Result = res
|
|
return ec.marshalNAuditEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_AuditConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "AuditConnection",
|
|
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_AuditEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_AuditEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type AuditEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _AuditConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.AuditConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_AuditConnection_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.marshalNPageInfo2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_AuditConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "AuditConnection",
|
|
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) _AuditEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.AuditEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_AuditEdge_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_AuditEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "AuditEdge",
|
|
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) _AuditEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.AuditEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_AuditEdge_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.Audit)
|
|
fc.Result = res
|
|
return ec.marshalNAudit2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_AuditEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "AuditEdge",
|
|
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_Audit_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Audit_name(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Audit_organization(ctx, field)
|
|
case "framework":
|
|
return ec.fieldContext_Audit_framework(ctx, field)
|
|
case "validFrom":
|
|
return ec.fieldContext_Audit_validFrom(ctx, field)
|
|
case "validUntil":
|
|
return ec.fieldContext_Audit_validUntil(ctx, field)
|
|
case "report":
|
|
return ec.fieldContext_Audit_report(ctx, field)
|
|
case "reportUrl":
|
|
return ec.fieldContext_Audit_reportUrl(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Audit_state(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Audit_controls(ctx, field)
|
|
case "showOnTrustCenter":
|
|
return ec.fieldContext_Audit_showOnTrustCenter(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Audit_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Audit_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Audit", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _BulkPublishDocumentVersionsPayload_documentVersionEdges(ctx context.Context, field graphql.CollectedField, obj *types.BulkPublishDocumentVersionsPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_BulkPublishDocumentVersionsPayload_documentVersionEdges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DocumentVersionEdges, 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.DocumentVersionEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersionEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_BulkPublishDocumentVersionsPayload_documentVersionEdges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "BulkPublishDocumentVersionsPayload",
|
|
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_DocumentVersionEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DocumentVersionEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersionEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _BulkPublishDocumentVersionsPayload_documentEdges(ctx context.Context, field graphql.CollectedField, obj *types.BulkPublishDocumentVersionsPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_BulkPublishDocumentVersionsPayload_documentEdges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DocumentEdges, 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.DocumentEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_BulkPublishDocumentVersionsPayload_documentEdges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "BulkPublishDocumentVersionsPayload",
|
|
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_DocumentEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DocumentEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _BulkRequestSignaturesPayload_documentVersionSignatureEdges(ctx context.Context, field graphql.CollectedField, obj *types.BulkRequestSignaturesPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_BulkRequestSignaturesPayload_documentVersionSignatureEdges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DocumentVersionSignatureEdges, 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.DocumentVersionSignatureEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersionSignatureEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_BulkRequestSignaturesPayload_documentVersionSignatureEdges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "BulkRequestSignaturesPayload",
|
|
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_DocumentVersionSignatureEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DocumentVersionSignatureEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersionSignatureEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CancelSignatureRequestPayload_deletedDocumentVersionSignatureId(ctx context.Context, field graphql.CollectedField, obj *types.CancelSignatureRequestPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CancelSignatureRequestPayload_deletedDocumentVersionSignatureId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedDocumentVersionSignatureID, 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_CancelSignatureRequestPayload_deletedDocumentVersionSignatureId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CancelSignatureRequestPayload",
|
|
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) _ComplianceRegistry_id(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_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_ComplianceRegistry_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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) _ComplianceRegistry_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_snapshotId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SnapshotID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ComplianceRegistry_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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) _ComplianceRegistry_sourceId(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_sourceId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SourceID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ComplianceRegistry_sourceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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) _ComplianceRegistry_organization(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_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 ec.resolvers.ComplianceRegistry().Organization(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.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_ComplianceRegistry_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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_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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _ComplianceRegistry_referenceId(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_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_ComplianceRegistry_referenceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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) _ComplianceRegistry_area(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_area(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Area, 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_ComplianceRegistry_area(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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) _ComplianceRegistry_source(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_source(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Source, 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_ComplianceRegistry_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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) _ComplianceRegistry_requirement(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_requirement(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Requirement, 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_ComplianceRegistry_requirement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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) _ComplianceRegistry_actionsToBeImplemented(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_actionsToBeImplemented(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ActionsToBeImplemented, 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_ComplianceRegistry_actionsToBeImplemented(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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) _ComplianceRegistry_regulator(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_regulator(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Regulator, 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_ComplianceRegistry_regulator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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) _ComplianceRegistry_owner(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_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.ComplianceRegistry().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_ComplianceRegistry_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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) _ComplianceRegistry_lastReviewDate(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_lastReviewDate(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.LastReviewDate, 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_ComplianceRegistry_lastReviewDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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) _ComplianceRegistry_dueDate(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_dueDate(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DueDate, 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_ComplianceRegistry_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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) _ComplianceRegistry_status(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_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.ComplianceRegistryStatus)
|
|
fc.Result = res
|
|
return ec.marshalNComplianceRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ComplianceRegistry_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ComplianceRegistryStatus does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ComplianceRegistry_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_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_ComplianceRegistry_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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) _ComplianceRegistry_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistry_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_ComplianceRegistry_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistry",
|
|
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) _ComplianceRegistryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistryConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistryConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.ComplianceRegistryConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ComplianceRegistryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistryConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _ComplianceRegistryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistryConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistryConnection_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.ComplianceRegistryEdge)
|
|
fc.Result = res
|
|
return ec.marshalNComplianceRegistryEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistryEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ComplianceRegistryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistryConnection",
|
|
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_ComplianceRegistryEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_ComplianceRegistryEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ComplianceRegistryEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ComplianceRegistryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistryConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistryConnection_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.marshalNPageInfo2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ComplianceRegistryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistryConnection",
|
|
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) _ComplianceRegistryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistryEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistryEdge_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_ComplianceRegistryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistryEdge",
|
|
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) _ComplianceRegistryEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceRegistryEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ComplianceRegistryEdge_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.ComplianceRegistry)
|
|
fc.Result = res
|
|
return ec.marshalNComplianceRegistry2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistry(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ComplianceRegistryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ComplianceRegistryEdge",
|
|
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_ComplianceRegistry_id(ctx, field)
|
|
case "snapshotId":
|
|
return ec.fieldContext_ComplianceRegistry_snapshotId(ctx, field)
|
|
case "sourceId":
|
|
return ec.fieldContext_ComplianceRegistry_sourceId(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_ComplianceRegistry_organization(ctx, field)
|
|
case "referenceId":
|
|
return ec.fieldContext_ComplianceRegistry_referenceId(ctx, field)
|
|
case "area":
|
|
return ec.fieldContext_ComplianceRegistry_area(ctx, field)
|
|
case "source":
|
|
return ec.fieldContext_ComplianceRegistry_source(ctx, field)
|
|
case "requirement":
|
|
return ec.fieldContext_ComplianceRegistry_requirement(ctx, field)
|
|
case "actionsToBeImplemented":
|
|
return ec.fieldContext_ComplianceRegistry_actionsToBeImplemented(ctx, field)
|
|
case "regulator":
|
|
return ec.fieldContext_ComplianceRegistry_regulator(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_ComplianceRegistry_owner(ctx, field)
|
|
case "lastReviewDate":
|
|
return ec.fieldContext_ComplianceRegistry_lastReviewDate(ctx, field)
|
|
case "dueDate":
|
|
return ec.fieldContext_ComplianceRegistry_dueDate(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_ComplianceRegistry_status(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_ComplianceRegistry_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_ComplianceRegistry_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ComplianceRegistry", 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) _ContinualImprovementRegistry_id(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistry_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_ContinualImprovementRegistry_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistry",
|
|
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) _ContinualImprovementRegistry_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistry_snapshotId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SnapshotID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ContinualImprovementRegistry_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistry",
|
|
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) _ContinualImprovementRegistry_sourceId(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistry_sourceId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SourceID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ContinualImprovementRegistry_sourceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistry",
|
|
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) _ContinualImprovementRegistry_organization(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistry_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 ec.resolvers.ContinualImprovementRegistry().Organization(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.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_ContinualImprovementRegistry_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistry",
|
|
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_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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _ContinualImprovementRegistry_referenceId(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistry_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_ContinualImprovementRegistry_referenceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistry",
|
|
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) _ContinualImprovementRegistry_description(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistry_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_ContinualImprovementRegistry_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistry",
|
|
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) _ContinualImprovementRegistry_source(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistry_source(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Source, 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_ContinualImprovementRegistry_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistry",
|
|
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) _ContinualImprovementRegistry_owner(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistry_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.ContinualImprovementRegistry().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_ContinualImprovementRegistry_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistry",
|
|
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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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) _ContinualImprovementRegistry_targetDate(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistry_targetDate(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.TargetDate, 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_ContinualImprovementRegistry_targetDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistry",
|
|
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) _ContinualImprovementRegistry_status(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistry_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.ContinualImprovementRegistriesStatus)
|
|
fc.Result = res
|
|
return ec.marshalNContinualImprovementRegistriesStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ContinualImprovementRegistry_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistry",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ContinualImprovementRegistriesStatus does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ContinualImprovementRegistry_priority(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistry_priority(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Priority, 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.ContinualImprovementRegistriesPriority)
|
|
fc.Result = res
|
|
return ec.marshalNContinualImprovementRegistriesPriority2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ContinualImprovementRegistry_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistry",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ContinualImprovementRegistriesPriority does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ContinualImprovementRegistry_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistry_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_ContinualImprovementRegistry_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistry",
|
|
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) _ContinualImprovementRegistry_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistry_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_ContinualImprovementRegistry_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistry",
|
|
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) _ContinualImprovementRegistryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistryConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistryConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.ContinualImprovementRegistryConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ContinualImprovementRegistryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistryConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _ContinualImprovementRegistryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistryConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistryConnection_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.ContinualImprovementRegistryEdge)
|
|
fc.Result = res
|
|
return ec.marshalNContinualImprovementRegistryEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistryEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ContinualImprovementRegistryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistryConnection",
|
|
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_ContinualImprovementRegistryEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_ContinualImprovementRegistryEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ContinualImprovementRegistryEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ContinualImprovementRegistryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistryConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistryConnection_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.marshalNPageInfo2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ContinualImprovementRegistryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistryConnection",
|
|
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) _ContinualImprovementRegistryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistryEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistryEdge_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_ContinualImprovementRegistryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistryEdge",
|
|
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) _ContinualImprovementRegistryEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementRegistryEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ContinualImprovementRegistryEdge_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.ContinualImprovementRegistry)
|
|
fc.Result = res
|
|
return ec.marshalNContinualImprovementRegistry2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistry(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ContinualImprovementRegistryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ContinualImprovementRegistryEdge",
|
|
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_ContinualImprovementRegistry_id(ctx, field)
|
|
case "snapshotId":
|
|
return ec.fieldContext_ContinualImprovementRegistry_snapshotId(ctx, field)
|
|
case "sourceId":
|
|
return ec.fieldContext_ContinualImprovementRegistry_sourceId(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_ContinualImprovementRegistry_organization(ctx, field)
|
|
case "referenceId":
|
|
return ec.fieldContext_ContinualImprovementRegistry_referenceId(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_ContinualImprovementRegistry_description(ctx, field)
|
|
case "source":
|
|
return ec.fieldContext_ContinualImprovementRegistry_source(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_ContinualImprovementRegistry_owner(ctx, field)
|
|
case "targetDate":
|
|
return ec.fieldContext_ContinualImprovementRegistry_targetDate(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_ContinualImprovementRegistry_status(ctx, field)
|
|
case "priority":
|
|
return ec.fieldContext_ContinualImprovementRegistry_priority(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_ContinualImprovementRegistry_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_ContinualImprovementRegistry_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ContinualImprovementRegistry", 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_sectionTitle(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_sectionTitle(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SectionTitle, 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_sectionTitle(_ 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_status(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_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.ControlStatus)
|
|
fc.Result = res
|
|
return ec.marshalNControlStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Control_status(_ 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 ControlStatus does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Control_exclusionJustification(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_exclusionJustification(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ExclusionJustification, 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_Control_exclusionJustification(_ 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_framework(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_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 ec.resolvers.Control().Framework(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.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_Control_framework(_ 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 "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 "organization":
|
|
return ec.fieldContext_Framework_organization(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) _Control_measures(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_measures(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Measures(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.MeasureOrderBy), fc.Args["filter"].(*types.MeasureFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.MeasureConnection)
|
|
fc.Result = res
|
|
return ec.marshalNMeasureConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Control_measures(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 "totalCount":
|
|
return ec.fieldContext_MeasureConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_MeasureConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_MeasureConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MeasureConnection", 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_measures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Control_documents(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_documents(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Documents(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DocumentOrderBy), fc.Args["filter"].(*types.DocumentFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DocumentConnection)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Control_documents(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 "totalCount":
|
|
return ec.fieldContext_DocumentConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_DocumentConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_DocumentConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentConnection", 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_documents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Control_audits(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_audits(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Audits(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.AuditOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.AuditConnection)
|
|
fc.Result = res
|
|
return ec.marshalNAuditConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Control_audits(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 "totalCount":
|
|
return ec.fieldContext_AuditConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_AuditConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_AuditConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type AuditConnection", 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_audits_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Control_snapshots(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Control_snapshots(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Snapshots(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.SnapshotOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.SnapshotConnection)
|
|
fc.Result = res
|
|
return ec.marshalNSnapshotConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Control_snapshots(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 "totalCount":
|
|
return ec.fieldContext_SnapshotConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_SnapshotConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_SnapshotConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SnapshotConnection", 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_snapshots_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_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.ControlConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ControlConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.ControlConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ControlConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ControlConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _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.marshalNPageInfo2githubᚗ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 "sectionTitle":
|
|
return ec.fieldContext_Control_sectionTitle(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Control_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Control_description(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_Control_status(ctx, field)
|
|
case "exclusionJustification":
|
|
return ec.fieldContext_Control_exclusionJustification(ctx, field)
|
|
case "framework":
|
|
return ec.fieldContext_Control_framework(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Control_measures(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Control_documents(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Control_audits(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Control_snapshots(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) _CreateAssetPayload_assetEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateAssetPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateAssetPayload_assetEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.AssetEdge, 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.AssetEdge)
|
|
fc.Result = res
|
|
return ec.marshalNAssetEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateAssetPayload_assetEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateAssetPayload",
|
|
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_AssetEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_AssetEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type AssetEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateAuditPayload_auditEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateAuditPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateAuditPayload_auditEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.AuditEdge, 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.AuditEdge)
|
|
fc.Result = res
|
|
return ec.marshalNAuditEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateAuditPayload_auditEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateAuditPayload",
|
|
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_AuditEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_AuditEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type AuditEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateComplianceRegistryPayload_complianceRegistryEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateComplianceRegistryPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateComplianceRegistryPayload_complianceRegistryEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ComplianceRegistryEdge, 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.ComplianceRegistryEdge)
|
|
fc.Result = res
|
|
return ec.marshalNComplianceRegistryEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistryEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateComplianceRegistryPayload_complianceRegistryEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateComplianceRegistryPayload",
|
|
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_ComplianceRegistryEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_ComplianceRegistryEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ComplianceRegistryEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateContinualImprovementRegistryPayload_continualImprovementRegistryEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateContinualImprovementRegistryPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateContinualImprovementRegistryPayload_continualImprovementRegistryEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ContinualImprovementRegistryEdge, 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.ContinualImprovementRegistryEdge)
|
|
fc.Result = res
|
|
return ec.marshalNContinualImprovementRegistryEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistryEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateContinualImprovementRegistryPayload_continualImprovementRegistryEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateContinualImprovementRegistryPayload",
|
|
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_ContinualImprovementRegistryEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_ContinualImprovementRegistryEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ContinualImprovementRegistryEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateControlAuditMappingPayload_controlEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlAuditMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateControlAuditMappingPayload_controlEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ControlEdge, 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_CreateControlAuditMappingPayload_controlEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateControlAuditMappingPayload",
|
|
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) _CreateControlAuditMappingPayload_auditEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlAuditMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateControlAuditMappingPayload_auditEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.AuditEdge, 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.AuditEdge)
|
|
fc.Result = res
|
|
return ec.marshalNAuditEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateControlAuditMappingPayload_auditEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateControlAuditMappingPayload",
|
|
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_AuditEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_AuditEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type AuditEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateControlDocumentMappingPayload_controlEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlDocumentMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateControlDocumentMappingPayload_controlEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ControlEdge, 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_CreateControlDocumentMappingPayload_controlEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateControlDocumentMappingPayload",
|
|
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) _CreateControlDocumentMappingPayload_documentEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlDocumentMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateControlDocumentMappingPayload_documentEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DocumentEdge, 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.DocumentEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateControlDocumentMappingPayload_documentEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateControlDocumentMappingPayload",
|
|
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_DocumentEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DocumentEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateControlMeasureMappingPayload_controlEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlMeasureMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateControlMeasureMappingPayload_controlEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ControlEdge, 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_CreateControlMeasureMappingPayload_controlEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateControlMeasureMappingPayload",
|
|
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) _CreateControlMeasureMappingPayload_measureEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlMeasureMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateControlMeasureMappingPayload_measureEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.MeasureEdge, 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.MeasureEdge)
|
|
fc.Result = res
|
|
return ec.marshalNMeasureEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateControlMeasureMappingPayload_measureEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateControlMeasureMappingPayload",
|
|
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_MeasureEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_MeasureEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MeasureEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateControlPayload_controlEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateControlPayload_controlEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ControlEdge, 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_CreateControlPayload_controlEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateControlPayload",
|
|
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) _CreateControlSnapshotMappingPayload_controlEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlSnapshotMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateControlSnapshotMappingPayload_controlEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ControlEdge, 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_CreateControlSnapshotMappingPayload_controlEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateControlSnapshotMappingPayload",
|
|
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) _CreateControlSnapshotMappingPayload_snapshotEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlSnapshotMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateControlSnapshotMappingPayload_snapshotEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SnapshotEdge, 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.SnapshotEdge)
|
|
fc.Result = res
|
|
return ec.marshalNSnapshotEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateControlSnapshotMappingPayload_snapshotEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateControlSnapshotMappingPayload",
|
|
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_SnapshotEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_SnapshotEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SnapshotEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateDatumPayload_datumEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateDatumPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateDatumPayload_datumEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DatumEdge, 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.DatumEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDatumEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateDatumPayload_datumEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateDatumPayload",
|
|
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_DatumEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DatumEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DatumEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateDocumentPayload_documentEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateDocumentPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateDocumentPayload_documentEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DocumentEdge, 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.DocumentEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateDocumentPayload_documentEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateDocumentPayload",
|
|
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_DocumentEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DocumentEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateDocumentPayload_documentVersionEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateDocumentPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateDocumentPayload_documentVersionEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DocumentVersionEdge, 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.DocumentVersionEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersionEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateDocumentPayload_documentVersionEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateDocumentPayload",
|
|
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_DocumentVersionEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DocumentVersionEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersionEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateDraftDocumentVersionPayload_documentVersionEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateDraftDocumentVersionPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateDraftDocumentVersionPayload_documentVersionEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DocumentVersionEdge, 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.DocumentVersionEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersionEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateDraftDocumentVersionPayload_documentVersionEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateDraftDocumentVersionPayload",
|
|
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_DocumentVersionEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DocumentVersionEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersionEdge", field.Name)
|
|
},
|
|
}
|
|
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) _CreateMeasurePayload_measureEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateMeasurePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateMeasurePayload_measureEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.MeasureEdge, 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.MeasureEdge)
|
|
fc.Result = res
|
|
return ec.marshalNMeasureEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateMeasurePayload_measureEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateMeasurePayload",
|
|
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_MeasureEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_MeasureEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MeasureEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateNonconformityRegistryPayload_nonconformityRegistryEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateNonconformityRegistryPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateNonconformityRegistryPayload_nonconformityRegistryEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.NonconformityRegistryEdge, 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.NonconformityRegistryEdge)
|
|
fc.Result = res
|
|
return ec.marshalNNonconformityRegistryEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistryEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateNonconformityRegistryPayload_nonconformityRegistryEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateNonconformityRegistryPayload",
|
|
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_NonconformityRegistryEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_NonconformityRegistryEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type NonconformityRegistryEdge", 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) _CreateProcessingActivityRegistryPayload_processingActivityRegistryEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateProcessingActivityRegistryPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateProcessingActivityRegistryPayload_processingActivityRegistryEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ProcessingActivityRegistryEdge, 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.ProcessingActivityRegistryEdge)
|
|
fc.Result = res
|
|
return ec.marshalNProcessingActivityRegistryEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistryEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateProcessingActivityRegistryPayload_processingActivityRegistryEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateProcessingActivityRegistryPayload",
|
|
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_ProcessingActivityRegistryEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_ProcessingActivityRegistryEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ProcessingActivityRegistryEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateRiskDocumentMappingPayload_riskEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskDocumentMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateRiskDocumentMappingPayload_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_CreateRiskDocumentMappingPayload_riskEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateRiskDocumentMappingPayload",
|
|
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) _CreateRiskDocumentMappingPayload_documentEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskDocumentMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateRiskDocumentMappingPayload_documentEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DocumentEdge, 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.DocumentEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateRiskDocumentMappingPayload_documentEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateRiskDocumentMappingPayload",
|
|
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_DocumentEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DocumentEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateRiskMeasureMappingPayload_riskEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskMeasureMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateRiskMeasureMappingPayload_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_CreateRiskMeasureMappingPayload_riskEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateRiskMeasureMappingPayload",
|
|
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) _CreateRiskMeasureMappingPayload_measureEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskMeasureMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateRiskMeasureMappingPayload_measureEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.MeasureEdge, 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.MeasureEdge)
|
|
fc.Result = res
|
|
return ec.marshalNMeasureEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateRiskMeasureMappingPayload_measureEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateRiskMeasureMappingPayload",
|
|
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_MeasureEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_MeasureEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MeasureEdge", field.Name)
|
|
},
|
|
}
|
|
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) _CreateSnapshotPayload_snapshotEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateSnapshotPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateSnapshotPayload_snapshotEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SnapshotEdge, 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.SnapshotEdge)
|
|
fc.Result = res
|
|
return ec.marshalNSnapshotEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateSnapshotPayload_snapshotEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateSnapshotPayload",
|
|
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_SnapshotEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_SnapshotEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SnapshotEdge", field.Name)
|
|
},
|
|
}
|
|
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) _CreateTrustCenterAccessPayload_trustCenterAccessEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateTrustCenterAccessPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateTrustCenterAccessPayload_trustCenterAccessEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.TrustCenterAccessEdge, 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.TrustCenterAccessEdge)
|
|
fc.Result = res
|
|
return ec.marshalNTrustCenterAccessEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateTrustCenterAccessPayload_trustCenterAccessEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateTrustCenterAccessPayload",
|
|
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_TrustCenterAccessEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_TrustCenterAccessEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type TrustCenterAccessEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateVendorContactPayload_vendorContactEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateVendorContactPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateVendorContactPayload_vendorContactEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.VendorContactEdge, 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.VendorContactEdge)
|
|
fc.Result = res
|
|
return ec.marshalNVendorContactEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateVendorContactPayload_vendorContactEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateVendorContactPayload",
|
|
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_VendorContactEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_VendorContactEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorContactEdge", 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) _CreateVendorServicePayload_vendorServiceEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateVendorServicePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_CreateVendorServicePayload_vendorServiceEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.VendorServiceEdge, 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.VendorServiceEdge)
|
|
fc.Result = res
|
|
return ec.marshalNVendorServiceEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateVendorServicePayload_vendorServiceEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateVendorServicePayload",
|
|
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_VendorServiceEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_VendorServiceEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorServiceEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Datum_id(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Datum_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_Datum_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Datum",
|
|
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) _Datum_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Datum_snapshotId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SnapshotID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Datum_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Datum",
|
|
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) _Datum_name(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Datum_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_Datum_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Datum",
|
|
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) _Datum_dataClassification(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Datum_dataClassification(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DataClassification, 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.DataClassification)
|
|
fc.Result = res
|
|
return ec.marshalNDataClassification2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Datum_dataClassification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Datum",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type DataClassification does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Datum_owner(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Datum_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.Datum().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_Datum_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Datum",
|
|
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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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) _Datum_vendors(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Datum_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.Datum().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_Datum_vendors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Datum",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "totalCount":
|
|
return ec.fieldContext_VendorConnection_totalCount(ctx, field)
|
|
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_Datum_vendors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Datum_organization(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Datum_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 ec.resolvers.Datum().Organization(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.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_Datum_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Datum",
|
|
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_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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _Datum_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Datum_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_Datum_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Datum",
|
|
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) _Datum_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Datum_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_Datum_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Datum",
|
|
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) _DatumConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.DatumConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DatumConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.DatumConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DatumConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DatumConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _DatumConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.DatumConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DatumConnection_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.DatumEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDatumEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DatumConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DatumConnection",
|
|
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_DatumEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DatumEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DatumEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DatumConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.DatumConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DatumConnection_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.marshalNPageInfo2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DatumConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DatumConnection",
|
|
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) _DatumEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.DatumEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DatumEdge_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_DatumEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DatumEdge",
|
|
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) _DatumEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.DatumEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DatumEdge_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.Datum)
|
|
fc.Result = res
|
|
return ec.marshalNDatum2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatum(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DatumEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DatumEdge",
|
|
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_Datum_id(ctx, field)
|
|
case "snapshotId":
|
|
return ec.fieldContext_Datum_snapshotId(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Datum_name(ctx, field)
|
|
case "dataClassification":
|
|
return ec.fieldContext_Datum_dataClassification(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Datum_owner(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Datum_vendors(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Datum_organization(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Datum_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Datum_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Datum", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteAssetPayload_deletedAssetId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteAssetPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteAssetPayload_deletedAssetId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedAssetID, 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_DeleteAssetPayload_deletedAssetId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteAssetPayload",
|
|
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) _DeleteAuditPayload_deletedAuditId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteAuditPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteAuditPayload_deletedAuditId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedAuditID, 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_DeleteAuditPayload_deletedAuditId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteAuditPayload",
|
|
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) _DeleteAuditReportPayload_audit(ctx context.Context, field graphql.CollectedField, obj *types.DeleteAuditReportPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteAuditReportPayload_audit(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Audit, 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.Audit)
|
|
fc.Result = res
|
|
return ec.marshalNAudit2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteAuditReportPayload_audit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteAuditReportPayload",
|
|
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_Audit_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Audit_name(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Audit_organization(ctx, field)
|
|
case "framework":
|
|
return ec.fieldContext_Audit_framework(ctx, field)
|
|
case "validFrom":
|
|
return ec.fieldContext_Audit_validFrom(ctx, field)
|
|
case "validUntil":
|
|
return ec.fieldContext_Audit_validUntil(ctx, field)
|
|
case "report":
|
|
return ec.fieldContext_Audit_report(ctx, field)
|
|
case "reportUrl":
|
|
return ec.fieldContext_Audit_reportUrl(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Audit_state(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Audit_controls(ctx, field)
|
|
case "showOnTrustCenter":
|
|
return ec.fieldContext_Audit_showOnTrustCenter(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Audit_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Audit_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Audit", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteComplianceRegistryPayload_deletedComplianceRegistryId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteComplianceRegistryPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteComplianceRegistryPayload_deletedComplianceRegistryId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedComplianceRegistryID, 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_DeleteComplianceRegistryPayload_deletedComplianceRegistryId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteComplianceRegistryPayload",
|
|
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) _DeleteContinualImprovementRegistryPayload_deletedContinualImprovementRegistryId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteContinualImprovementRegistryPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteContinualImprovementRegistryPayload_deletedContinualImprovementRegistryId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedContinualImprovementRegistryID, 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_DeleteContinualImprovementRegistryPayload_deletedContinualImprovementRegistryId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteContinualImprovementRegistryPayload",
|
|
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) _DeleteControlAuditMappingPayload_deletedControlId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlAuditMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteControlAuditMappingPayload_deletedControlId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedControlID, 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_DeleteControlAuditMappingPayload_deletedControlId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteControlAuditMappingPayload",
|
|
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) _DeleteControlAuditMappingPayload_deletedAuditId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlAuditMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteControlAuditMappingPayload_deletedAuditId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedAuditID, 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_DeleteControlAuditMappingPayload_deletedAuditId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteControlAuditMappingPayload",
|
|
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) _DeleteControlDocumentMappingPayload_deletedControlId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlDocumentMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteControlDocumentMappingPayload_deletedControlId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedControlID, 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_DeleteControlDocumentMappingPayload_deletedControlId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteControlDocumentMappingPayload",
|
|
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) _DeleteControlDocumentMappingPayload_deletedDocumentId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlDocumentMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteControlDocumentMappingPayload_deletedDocumentId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedDocumentID, 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_DeleteControlDocumentMappingPayload_deletedDocumentId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteControlDocumentMappingPayload",
|
|
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) _DeleteControlMeasureMappingPayload_deletedControlId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlMeasureMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteControlMeasureMappingPayload_deletedControlId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedControlID, 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_DeleteControlMeasureMappingPayload_deletedControlId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteControlMeasureMappingPayload",
|
|
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) _DeleteControlMeasureMappingPayload_deletedMeasureId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlMeasureMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteControlMeasureMappingPayload_deletedMeasureId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedMeasureID, 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_DeleteControlMeasureMappingPayload_deletedMeasureId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteControlMeasureMappingPayload",
|
|
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) _DeleteControlPayload_deletedControlId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteControlPayload_deletedControlId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedControlID, 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_DeleteControlPayload_deletedControlId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteControlPayload",
|
|
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) _DeleteControlSnapshotMappingPayload_deletedControlId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlSnapshotMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteControlSnapshotMappingPayload_deletedControlId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedControlID, 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_DeleteControlSnapshotMappingPayload_deletedControlId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteControlSnapshotMappingPayload",
|
|
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) _DeleteControlSnapshotMappingPayload_deletedSnapshotId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlSnapshotMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteControlSnapshotMappingPayload_deletedSnapshotId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedSnapshotID, 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_DeleteControlSnapshotMappingPayload_deletedSnapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteControlSnapshotMappingPayload",
|
|
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) _DeleteDatumPayload_deletedDatumId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteDatumPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteDatumPayload_deletedDatumId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedDatumID, 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_DeleteDatumPayload_deletedDatumId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteDatumPayload",
|
|
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) _DeleteDocumentPayload_deletedDocumentId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteDocumentPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteDocumentPayload_deletedDocumentId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedDocumentID, 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_DeleteDocumentPayload_deletedDocumentId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteDocumentPayload",
|
|
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) _DeleteDraftDocumentVersionPayload_deletedDocumentVersionId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteDraftDocumentVersionPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteDraftDocumentVersionPayload_deletedDocumentVersionId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedDocumentVersionID, 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_DeleteDraftDocumentVersionPayload_deletedDocumentVersionId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteDraftDocumentVersionPayload",
|
|
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) _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) _DeleteMeasurePayload_deletedMeasureId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteMeasurePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteMeasurePayload_deletedMeasureId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedMeasureID, 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_DeleteMeasurePayload_deletedMeasureId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteMeasurePayload",
|
|
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) _DeleteNonconformityRegistryPayload_deletedNonconformityRegistryId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteNonconformityRegistryPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteNonconformityRegistryPayload_deletedNonconformityRegistryId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedNonconformityRegistryID, 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_DeleteNonconformityRegistryPayload_deletedNonconformityRegistryId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteNonconformityRegistryPayload",
|
|
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) _DeleteProcessingActivityRegistryPayload_deletedProcessingActivityRegistryId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteProcessingActivityRegistryPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteProcessingActivityRegistryPayload_deletedProcessingActivityRegistryId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedProcessingActivityRegistryID, 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_DeleteProcessingActivityRegistryPayload_deletedProcessingActivityRegistryId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteProcessingActivityRegistryPayload",
|
|
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) _DeleteRiskDocumentMappingPayload_deletedRiskId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskDocumentMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteRiskDocumentMappingPayload_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_DeleteRiskDocumentMappingPayload_deletedRiskId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteRiskDocumentMappingPayload",
|
|
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) _DeleteRiskDocumentMappingPayload_deletedDocumentId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskDocumentMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteRiskDocumentMappingPayload_deletedDocumentId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedDocumentID, 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_DeleteRiskDocumentMappingPayload_deletedDocumentId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteRiskDocumentMappingPayload",
|
|
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) _DeleteRiskMeasureMappingPayload_deletedMeasureId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskMeasureMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteRiskMeasureMappingPayload_deletedMeasureId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedMeasureID, 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_DeleteRiskMeasureMappingPayload_deletedMeasureId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteRiskMeasureMappingPayload",
|
|
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) _DeleteRiskMeasureMappingPayload_deletedRiskId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskMeasureMappingPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteRiskMeasureMappingPayload_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_DeleteRiskMeasureMappingPayload_deletedRiskId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteRiskMeasureMappingPayload",
|
|
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) _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) _DeleteSnapshotPayload_deletedSnapshotId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteSnapshotPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteSnapshotPayload_deletedSnapshotId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedSnapshotID, 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_DeleteSnapshotPayload_deletedSnapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteSnapshotPayload",
|
|
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) _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) _DeleteTrustCenterAccessPayload_deletedTrustCenterAccessId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteTrustCenterAccessPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteTrustCenterAccessPayload_deletedTrustCenterAccessId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedTrustCenterAccessID, 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_DeleteTrustCenterAccessPayload_deletedTrustCenterAccessId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteTrustCenterAccessPayload",
|
|
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) _DeleteVendorBusinessAssociateAgreementPayload_deletedVendorId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteVendorBusinessAssociateAgreementPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteVendorBusinessAssociateAgreementPayload_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_DeleteVendorBusinessAssociateAgreementPayload_deletedVendorId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteVendorBusinessAssociateAgreementPayload",
|
|
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) _DeleteVendorContactPayload_deletedVendorContactId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteVendorContactPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteVendorContactPayload_deletedVendorContactId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedVendorContactID, 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_DeleteVendorContactPayload_deletedVendorContactId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteVendorContactPayload",
|
|
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) _DeleteVendorDataPrivacyAgreementPayload_deletedVendorId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteVendorDataPrivacyAgreementPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteVendorDataPrivacyAgreementPayload_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_DeleteVendorDataPrivacyAgreementPayload_deletedVendorId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteVendorDataPrivacyAgreementPayload",
|
|
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) _DeleteVendorServicePayload_deletedVendorServiceId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteVendorServicePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DeleteVendorServicePayload_deletedVendorServiceId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DeletedVendorServiceID, 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_DeleteVendorServicePayload_deletedVendorServiceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteVendorServicePayload",
|
|
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) _Document_id(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Document_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_Document_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Document",
|
|
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) _Document_title(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Document_title(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Title, 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_Document_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Document",
|
|
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) _Document_description(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Document_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_Document_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Document",
|
|
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) _Document_documentType(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Document_documentType(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DocumentType, 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.DocumentType)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Document_documentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Document",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type DocumentType does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Document_currentPublishedVersion(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Document_currentPublishedVersion(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CurrentPublishedVersion, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*int)
|
|
fc.Result = res
|
|
return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Document_currentPublishedVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Document",
|
|
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) _Document_showOnTrustCenter(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Document_showOnTrustCenter(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ShowOnTrustCenter, 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_Document_showOnTrustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Document",
|
|
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) _Document_owner(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Document_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.Document().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_Document_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Document",
|
|
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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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) _Document_organization(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Document_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 ec.resolvers.Document().Organization(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.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_Document_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Document",
|
|
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_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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _Document_versions(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Document_versions(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.Document().Versions(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DocumentVersionOrderBy), fc.Args["filter"].(*types.DocumentVersionFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DocumentVersionConnection)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersionConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Document_versions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Document",
|
|
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_DocumentVersionConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_DocumentVersionConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersionConnection", 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_Document_versions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Document_controls(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Document_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.Document().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), fc.Args["filter"].(*types.ControlFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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_Document_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Document",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "totalCount":
|
|
return ec.fieldContext_ControlConnection_totalCount(ctx, field)
|
|
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_Document_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Document_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Document_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_Document_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Document",
|
|
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) _Document_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Document_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_Document_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Document",
|
|
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) _DocumentConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.DocumentConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.DocumentConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DocumentConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _DocumentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.DocumentConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentConnection_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.DocumentEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DocumentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentConnection",
|
|
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_DocumentEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DocumentEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DocumentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.DocumentConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentConnection_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.marshalNPageInfo2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DocumentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentConnection",
|
|
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) _DocumentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.DocumentEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentEdge_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_DocumentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentEdge",
|
|
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) _DocumentEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.DocumentEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentEdge_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.Document)
|
|
fc.Result = res
|
|
return ec.marshalNDocument2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DocumentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentEdge",
|
|
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_Document_id(ctx, field)
|
|
case "title":
|
|
return ec.fieldContext_Document_title(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Document_description(ctx, field)
|
|
case "documentType":
|
|
return ec.fieldContext_Document_documentType(ctx, field)
|
|
case "currentPublishedVersion":
|
|
return ec.fieldContext_Document_currentPublishedVersion(ctx, field)
|
|
case "showOnTrustCenter":
|
|
return ec.fieldContext_Document_showOnTrustCenter(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Document_owner(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Document_organization(ctx, field)
|
|
case "versions":
|
|
return ec.fieldContext_Document_versions(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Document_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Document_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Document_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Document", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DocumentVersion_id(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersion_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_DocumentVersion_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersion",
|
|
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) _DocumentVersion_document(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersion_document(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.DocumentVersion().Document(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.Document)
|
|
fc.Result = res
|
|
return ec.marshalNDocument2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DocumentVersion_document(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersion",
|
|
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_Document_id(ctx, field)
|
|
case "title":
|
|
return ec.fieldContext_Document_title(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Document_description(ctx, field)
|
|
case "documentType":
|
|
return ec.fieldContext_Document_documentType(ctx, field)
|
|
case "currentPublishedVersion":
|
|
return ec.fieldContext_Document_currentPublishedVersion(ctx, field)
|
|
case "showOnTrustCenter":
|
|
return ec.fieldContext_Document_showOnTrustCenter(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Document_owner(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Document_organization(ctx, field)
|
|
case "versions":
|
|
return ec.fieldContext_Document_versions(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Document_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Document_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Document_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Document", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DocumentVersion_status(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersion_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.DocumentStatus)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DocumentVersion_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersion",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type DocumentStatus does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DocumentVersion_version(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersion_version(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Version, 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_DocumentVersion_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersion",
|
|
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) _DocumentVersion_content(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersion_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_DocumentVersion_content(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersion",
|
|
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) _DocumentVersion_changelog(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersion_changelog(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Changelog, 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_DocumentVersion_changelog(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersion",
|
|
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) _DocumentVersion_title(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersion_title(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Title, 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_DocumentVersion_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersion",
|
|
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) _DocumentVersion_owner(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersion_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.DocumentVersion().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_DocumentVersion_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersion",
|
|
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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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) _DocumentVersion_signatures(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersion_signatures(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.DocumentVersion().Signatures(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DocumentVersionSignatureOrder))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DocumentVersionSignatureConnection)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersionSignatureConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DocumentVersion_signatures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersion",
|
|
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_DocumentVersionSignatureConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_DocumentVersionSignatureConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersionSignatureConnection", 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_DocumentVersion_signatures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DocumentVersion_publishedBy(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersion_publishedBy(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.DocumentVersion().PublishedBy(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_DocumentVersion_publishedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersion",
|
|
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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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) _DocumentVersion_publishedAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersion_publishedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PublishedAt, 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_DocumentVersion_publishedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersion",
|
|
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) _DocumentVersion_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersion_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_DocumentVersion_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersion",
|
|
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) _DocumentVersion_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersion_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_DocumentVersion_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersion",
|
|
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) _DocumentVersionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionConnection_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.DocumentVersionEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersionEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DocumentVersionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionConnection",
|
|
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_DocumentVersionEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DocumentVersionEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersionEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DocumentVersionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionConnection_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_DocumentVersionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionConnection",
|
|
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) _DocumentVersionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionEdge_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_DocumentVersionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionEdge",
|
|
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) _DocumentVersionEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionEdge_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.DocumentVersion)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersion2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersion(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DocumentVersionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionEdge",
|
|
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_DocumentVersion_id(ctx, field)
|
|
case "document":
|
|
return ec.fieldContext_DocumentVersion_document(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_DocumentVersion_status(ctx, field)
|
|
case "version":
|
|
return ec.fieldContext_DocumentVersion_version(ctx, field)
|
|
case "content":
|
|
return ec.fieldContext_DocumentVersion_content(ctx, field)
|
|
case "changelog":
|
|
return ec.fieldContext_DocumentVersion_changelog(ctx, field)
|
|
case "title":
|
|
return ec.fieldContext_DocumentVersion_title(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_DocumentVersion_owner(ctx, field)
|
|
case "signatures":
|
|
return ec.fieldContext_DocumentVersion_signatures(ctx, field)
|
|
case "publishedBy":
|
|
return ec.fieldContext_DocumentVersion_publishedBy(ctx, field)
|
|
case "publishedAt":
|
|
return ec.fieldContext_DocumentVersion_publishedAt(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_DocumentVersion_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_DocumentVersion_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersion", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DocumentVersionSignature_id(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionSignature_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_DocumentVersionSignature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionSignature",
|
|
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) _DocumentVersionSignature_documentVersion(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionSignature_documentVersion(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.DocumentVersionSignature().DocumentVersion(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.DocumentVersion)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersion2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersion(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DocumentVersionSignature_documentVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionSignature",
|
|
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_DocumentVersion_id(ctx, field)
|
|
case "document":
|
|
return ec.fieldContext_DocumentVersion_document(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_DocumentVersion_status(ctx, field)
|
|
case "version":
|
|
return ec.fieldContext_DocumentVersion_version(ctx, field)
|
|
case "content":
|
|
return ec.fieldContext_DocumentVersion_content(ctx, field)
|
|
case "changelog":
|
|
return ec.fieldContext_DocumentVersion_changelog(ctx, field)
|
|
case "title":
|
|
return ec.fieldContext_DocumentVersion_title(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_DocumentVersion_owner(ctx, field)
|
|
case "signatures":
|
|
return ec.fieldContext_DocumentVersion_signatures(ctx, field)
|
|
case "publishedBy":
|
|
return ec.fieldContext_DocumentVersion_publishedBy(ctx, field)
|
|
case "publishedAt":
|
|
return ec.fieldContext_DocumentVersion_publishedAt(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_DocumentVersion_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_DocumentVersion_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersion", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DocumentVersionSignature_state(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionSignature_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.DocumentVersionSignatureState)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersionSignatureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DocumentVersionSignature_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionSignature",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type DocumentVersionSignatureState does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DocumentVersionSignature_signedBy(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionSignature_signedBy(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.DocumentVersionSignature().SignedBy(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_DocumentVersionSignature_signedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionSignature",
|
|
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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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) _DocumentVersionSignature_signedAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionSignature_signedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SignedAt, 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_DocumentVersionSignature_signedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionSignature",
|
|
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) _DocumentVersionSignature_requestedAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionSignature_requestedAt(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.RequestedAt, 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_DocumentVersionSignature_requestedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionSignature",
|
|
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) _DocumentVersionSignature_requestedBy(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionSignature_requestedBy(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.DocumentVersionSignature().RequestedBy(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_DocumentVersionSignature_requestedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionSignature",
|
|
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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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) _DocumentVersionSignature_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionSignature_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_DocumentVersionSignature_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionSignature",
|
|
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) _DocumentVersionSignature_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionSignature_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_DocumentVersionSignature_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionSignature",
|
|
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) _DocumentVersionSignatureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignatureConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionSignatureConnection_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.DocumentVersionSignatureEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersionSignatureEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DocumentVersionSignatureConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionSignatureConnection",
|
|
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_DocumentVersionSignatureEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DocumentVersionSignatureEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersionSignatureEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DocumentVersionSignatureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignatureConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionSignatureConnection_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_DocumentVersionSignatureConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionSignatureConnection",
|
|
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) _DocumentVersionSignatureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignatureEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionSignatureEdge_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_DocumentVersionSignatureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionSignatureEdge",
|
|
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) _DocumentVersionSignatureEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignatureEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_DocumentVersionSignatureEdge_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.DocumentVersionSignature)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersionSignature2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignature(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DocumentVersionSignatureEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DocumentVersionSignatureEdge",
|
|
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_DocumentVersionSignature_id(ctx, field)
|
|
case "documentVersion":
|
|
return ec.fieldContext_DocumentVersionSignature_documentVersion(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_DocumentVersionSignature_state(ctx, field)
|
|
case "signedBy":
|
|
return ec.fieldContext_DocumentVersionSignature_signedBy(ctx, field)
|
|
case "signedAt":
|
|
return ec.fieldContext_DocumentVersionSignature_signedAt(ctx, field)
|
|
case "requestedAt":
|
|
return ec.fieldContext_DocumentVersionSignature_requestedAt(ctx, field)
|
|
case "requestedBy":
|
|
return ec.fieldContext_DocumentVersionSignature_requestedBy(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_DocumentVersionSignature_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_DocumentVersionSignature_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersionSignature", field.Name)
|
|
},
|
|
}
|
|
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_task(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Evidence_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 ec.resolvers.Evidence().Task(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Task)
|
|
fc.Result = res
|
|
return ec.marshalOTask2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTask(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Evidence_task(_ 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) {
|
|
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 "deadline":
|
|
return ec.fieldContext_Task_deadline(ctx, field)
|
|
case "assignedTo":
|
|
return ec.fieldContext_Task_assignedTo(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Task_organization(ctx, field)
|
|
case "measure":
|
|
return ec.fieldContext_Task_measure(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) _Evidence_measure(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Evidence_measure(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Measure(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.Measure)
|
|
fc.Result = res
|
|
return ec.marshalNMeasure2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Evidence_measure(_ 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) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Measure_id(ctx, field)
|
|
case "category":
|
|
return ec.fieldContext_Measure_category(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Measure_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Measure_description(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Measure_state(ctx, field)
|
|
case "evidences":
|
|
return ec.fieldContext_Measure_evidences(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Measure_tasks(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Measure_risks(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Measure_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Measure_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Measure_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Measure", field.Name)
|
|
},
|
|
}
|
|
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_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.EvidenceConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_EvidenceConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.EvidenceConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_EvidenceConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "EvidenceConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _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.marshalNPageInfo2githubᚗ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 "task":
|
|
return ec.fieldContext_Evidence_task(ctx, field)
|
|
case "measure":
|
|
return ec.fieldContext_Evidence_measure(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) _ExportDocumentVersionPDFPayload_data(ctx context.Context, field graphql.CollectedField, obj *types.ExportDocumentVersionPDFPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ExportDocumentVersionPDFPayload_data(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Data, 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_ExportDocumentVersionPDFPayload_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ExportDocumentVersionPDFPayload",
|
|
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_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_organization(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Framework_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 ec.resolvers.Framework().Organization(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.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_Framework_organization(_ 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 "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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _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), fc.Args["filter"].(*types.ControlFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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 "totalCount":
|
|
return ec.fieldContext_ControlConnection_totalCount(ctx, field)
|
|
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_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.FrameworkConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_FrameworkConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.FrameworkConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_FrameworkConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "FrameworkConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _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.marshalNPageInfo2githubᚗ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 "organization":
|
|
return ec.fieldContext_Framework_organization(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) _GenerateDocumentChangelogPayload_changelog(ctx context.Context, field graphql.CollectedField, obj *types.GenerateDocumentChangelogPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_GenerateDocumentChangelogPayload_changelog(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Changelog, 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_GenerateDocumentChangelogPayload_changelog(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "GenerateDocumentChangelogPayload",
|
|
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) _GenerateFrameworkStateOfApplicabilityPayload_data(ctx context.Context, field graphql.CollectedField, obj *types.GenerateFrameworkStateOfApplicabilityPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_GenerateFrameworkStateOfApplicabilityPayload_data(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Data, 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_GenerateFrameworkStateOfApplicabilityPayload_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "GenerateFrameworkStateOfApplicabilityPayload",
|
|
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) _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) _ImportMeasurePayload_measureEdges(ctx context.Context, field graphql.CollectedField, obj *types.ImportMeasurePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ImportMeasurePayload_measureEdges(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.MeasureEdges, 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.MeasureEdge)
|
|
fc.Result = res
|
|
return ec.marshalNMeasureEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ImportMeasurePayload_measureEdges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ImportMeasurePayload",
|
|
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_MeasureEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_MeasureEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MeasureEdge", 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) _Measure_id(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Measure_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_Measure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Measure",
|
|
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) _Measure_category(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Measure_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_Measure_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Measure",
|
|
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) _Measure_name(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Measure_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_Measure_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Measure",
|
|
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) _Measure_description(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Measure_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_Measure_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Measure",
|
|
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) _Measure_state(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Measure_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.MeasureState)
|
|
fc.Result = res
|
|
return ec.marshalNMeasureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Measure_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Measure",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type MeasureState does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Measure_evidences(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Measure_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.Measure().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_Measure_evidences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Measure",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "totalCount":
|
|
return ec.fieldContext_EvidenceConnection_totalCount(ctx, field)
|
|
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_Measure_evidences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Measure_tasks(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Measure_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.Measure().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_Measure_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Measure",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "totalCount":
|
|
return ec.fieldContext_TaskConnection_totalCount(ctx, field)
|
|
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_Measure_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Measure_risks(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Measure_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.Measure().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), fc.Args["filter"].(*types.RiskFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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_Measure_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Measure",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "totalCount":
|
|
return ec.fieldContext_RiskConnection_totalCount(ctx, field)
|
|
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_Measure_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Measure_controls(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Measure_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.Measure().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), fc.Args["filter"].(*types.ControlFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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_Measure_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Measure",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "totalCount":
|
|
return ec.fieldContext_ControlConnection_totalCount(ctx, field)
|
|
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_Measure_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Measure_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Measure_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_Measure_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Measure",
|
|
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) _Measure_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Measure_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_Measure_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Measure",
|
|
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) _MeasureConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.MeasureConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_MeasureConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.MeasureConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_MeasureConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "MeasureConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _MeasureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.MeasureConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_MeasureConnection_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.MeasureEdge)
|
|
fc.Result = res
|
|
return ec.marshalNMeasureEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_MeasureConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "MeasureConnection",
|
|
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_MeasureEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_MeasureEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MeasureEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _MeasureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.MeasureConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_MeasureConnection_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.marshalNPageInfo2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_MeasureConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "MeasureConnection",
|
|
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) _MeasureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.MeasureEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_MeasureEdge_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_MeasureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "MeasureEdge",
|
|
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) _MeasureEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.MeasureEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_MeasureEdge_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.Measure)
|
|
fc.Result = res
|
|
return ec.marshalNMeasure2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_MeasureEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "MeasureEdge",
|
|
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_Measure_id(ctx, field)
|
|
case "category":
|
|
return ec.fieldContext_Measure_category(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Measure_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Measure_description(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Measure_state(ctx, field)
|
|
case "evidences":
|
|
return ec.fieldContext_Measure_evidences(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Measure_tasks(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Measure_risks(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Measure_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Measure_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Measure_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Measure", 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_updateTrustCenter(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateTrustCenter(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateTrustCenter(rctx, fc.Args["input"].(types.UpdateTrustCenterInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateTrustCenterPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateTrustCenterPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateTrustCenter(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 "trustCenter":
|
|
return ec.fieldContext_UpdateTrustCenterPayload_trustCenter(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateTrustCenterPayload", 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_updateTrustCenter_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createTrustCenterAccess(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createTrustCenterAccess(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateTrustCenterAccess(rctx, fc.Args["input"].(types.CreateTrustCenterAccessInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateTrustCenterAccessPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateTrustCenterAccessPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterAccessPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createTrustCenterAccess(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 "trustCenterAccessEdge":
|
|
return ec.fieldContext_CreateTrustCenterAccessPayload_trustCenterAccessEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateTrustCenterAccessPayload", 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_createTrustCenterAccess_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateTrustCenterAccess(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateTrustCenterAccess(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateTrustCenterAccess(rctx, fc.Args["input"].(types.UpdateTrustCenterAccessInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateTrustCenterAccessPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateTrustCenterAccessPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterAccessPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateTrustCenterAccess(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 "trustCenterAccess":
|
|
return ec.fieldContext_UpdateTrustCenterAccessPayload_trustCenterAccess(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateTrustCenterAccessPayload", 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_updateTrustCenterAccess_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteTrustCenterAccess(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteTrustCenterAccess(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteTrustCenterAccess(rctx, fc.Args["input"].(types.DeleteTrustCenterAccessInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteTrustCenterAccessPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteTrustCenterAccessPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterAccessPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteTrustCenterAccess(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 "deletedTrustCenterAccessId":
|
|
return ec.fieldContext_DeleteTrustCenterAccessPayload_deletedTrustCenterAccessId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteTrustCenterAccessPayload", 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_deleteTrustCenterAccess_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_createVendorContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createVendorContact(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateVendorContact(rctx, fc.Args["input"].(types.CreateVendorContactInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateVendorContactPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateVendorContactPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorContactPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createVendorContact(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 "vendorContactEdge":
|
|
return ec.fieldContext_CreateVendorContactPayload_vendorContactEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateVendorContactPayload", 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_createVendorContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateVendorContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateVendorContact(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateVendorContact(rctx, fc.Args["input"].(types.UpdateVendorContactInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateVendorContactPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateVendorContactPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorContactPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateVendorContact(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 "vendorContact":
|
|
return ec.fieldContext_UpdateVendorContactPayload_vendorContact(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateVendorContactPayload", 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_updateVendorContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteVendorContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteVendorContact(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteVendorContact(rctx, fc.Args["input"].(types.DeleteVendorContactInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteVendorContactPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteVendorContactPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorContactPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteVendorContact(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 "deletedVendorContactId":
|
|
return ec.fieldContext_DeleteVendorContactPayload_deletedVendorContactId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteVendorContactPayload", 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_deleteVendorContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createVendorService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createVendorService(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateVendorService(rctx, fc.Args["input"].(types.CreateVendorServiceInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateVendorServicePayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateVendorServicePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorServicePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createVendorService(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 "vendorServiceEdge":
|
|
return ec.fieldContext_CreateVendorServicePayload_vendorServiceEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateVendorServicePayload", 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_createVendorService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateVendorService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateVendorService(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateVendorService(rctx, fc.Args["input"].(types.UpdateVendorServiceInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateVendorServicePayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateVendorServicePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorServicePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateVendorService(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 "vendorService":
|
|
return ec.fieldContext_UpdateVendorServicePayload_vendorService(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateVendorServicePayload", 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_updateVendorService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteVendorService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteVendorService(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteVendorService(rctx, fc.Args["input"].(types.DeleteVendorServiceInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteVendorServicePayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteVendorServicePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorServicePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteVendorService(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 "deletedVendorServiceId":
|
|
return ec.fieldContext_DeleteVendorServicePayload_deletedVendorServiceId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteVendorServicePayload", 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_deleteVendorService_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_generateFrameworkStateOfApplicability(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_generateFrameworkStateOfApplicability(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().GenerateFrameworkStateOfApplicability(rctx, fc.Args["input"].(types.GenerateFrameworkStateOfApplicabilityInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.GenerateFrameworkStateOfApplicabilityPayload)
|
|
fc.Result = res
|
|
return ec.marshalNGenerateFrameworkStateOfApplicabilityPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateFrameworkStateOfApplicabilityPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_generateFrameworkStateOfApplicability(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 "data":
|
|
return ec.fieldContext_GenerateFrameworkStateOfApplicabilityPayload_data(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type GenerateFrameworkStateOfApplicabilityPayload", 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_generateFrameworkStateOfApplicability_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createControl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateControl(rctx, fc.Args["input"].(types.CreateControlInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateControlPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateControlPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createControl(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 "controlEdge":
|
|
return ec.fieldContext_CreateControlPayload_controlEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateControlPayload", 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_createControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateControl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateControl(rctx, fc.Args["input"].(types.UpdateControlInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateControlPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateControlPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateControlPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateControl(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 "control":
|
|
return ec.fieldContext_UpdateControlPayload_control(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateControlPayload", 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_updateControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteControl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteControl(rctx, fc.Args["input"].(types.DeleteControlInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteControlPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteControlPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteControl(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 "deletedControlId":
|
|
return ec.fieldContext_DeleteControlPayload_deletedControlId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteControlPayload", 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_deleteControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createMeasure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createMeasure(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateMeasure(rctx, fc.Args["input"].(types.CreateMeasureInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateMeasurePayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateMeasurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeasurePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createMeasure(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 "measureEdge":
|
|
return ec.fieldContext_CreateMeasurePayload_measureEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateMeasurePayload", 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_createMeasure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateMeasure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateMeasure(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateMeasure(rctx, fc.Args["input"].(types.UpdateMeasureInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateMeasurePayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateMeasurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeasurePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateMeasure(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 "measure":
|
|
return ec.fieldContext_UpdateMeasurePayload_measure(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateMeasurePayload", 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_updateMeasure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_importMeasure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_importMeasure(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().ImportMeasure(rctx, fc.Args["input"].(types.ImportMeasureInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.ImportMeasurePayload)
|
|
fc.Result = res
|
|
return ec.marshalNImportMeasurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMeasurePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_importMeasure(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 "measureEdges":
|
|
return ec.fieldContext_ImportMeasurePayload_measureEdges(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ImportMeasurePayload", 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_importMeasure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteMeasure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteMeasure(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteMeasure(rctx, fc.Args["input"].(types.DeleteMeasureInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteMeasurePayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteMeasurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeasurePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteMeasure(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 "deletedMeasureId":
|
|
return ec.fieldContext_DeleteMeasurePayload_deletedMeasureId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteMeasurePayload", 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_deleteMeasure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createControlMeasureMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createControlMeasureMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateControlMeasureMapping(rctx, fc.Args["input"].(types.CreateControlMeasureMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateControlMeasureMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateControlMeasureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMeasureMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createControlMeasureMapping(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 "controlEdge":
|
|
return ec.fieldContext_CreateControlMeasureMappingPayload_controlEdge(ctx, field)
|
|
case "measureEdge":
|
|
return ec.fieldContext_CreateControlMeasureMappingPayload_measureEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateControlMeasureMappingPayload", 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_createControlMeasureMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createControlDocumentMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createControlDocumentMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateControlDocumentMapping(rctx, fc.Args["input"].(types.CreateControlDocumentMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateControlDocumentMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateControlDocumentMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlDocumentMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createControlDocumentMapping(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 "controlEdge":
|
|
return ec.fieldContext_CreateControlDocumentMappingPayload_controlEdge(ctx, field)
|
|
case "documentEdge":
|
|
return ec.fieldContext_CreateControlDocumentMappingPayload_documentEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateControlDocumentMappingPayload", 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_createControlDocumentMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteControlMeasureMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteControlMeasureMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteControlMeasureMapping(rctx, fc.Args["input"].(types.DeleteControlMeasureMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteControlMeasureMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteControlMeasureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMeasureMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteControlMeasureMapping(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 "deletedControlId":
|
|
return ec.fieldContext_DeleteControlMeasureMappingPayload_deletedControlId(ctx, field)
|
|
case "deletedMeasureId":
|
|
return ec.fieldContext_DeleteControlMeasureMappingPayload_deletedMeasureId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteControlMeasureMappingPayload", 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_deleteControlMeasureMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteControlDocumentMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteControlDocumentMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteControlDocumentMapping(rctx, fc.Args["input"].(types.DeleteControlDocumentMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteControlDocumentMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteControlDocumentMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlDocumentMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteControlDocumentMapping(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 "deletedControlId":
|
|
return ec.fieldContext_DeleteControlDocumentMappingPayload_deletedControlId(ctx, field)
|
|
case "deletedDocumentId":
|
|
return ec.fieldContext_DeleteControlDocumentMappingPayload_deletedDocumentId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteControlDocumentMappingPayload", 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_deleteControlDocumentMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createControlAuditMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createControlAuditMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateControlAuditMapping(rctx, fc.Args["input"].(types.CreateControlAuditMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateControlAuditMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateControlAuditMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlAuditMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createControlAuditMapping(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 "controlEdge":
|
|
return ec.fieldContext_CreateControlAuditMappingPayload_controlEdge(ctx, field)
|
|
case "auditEdge":
|
|
return ec.fieldContext_CreateControlAuditMappingPayload_auditEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateControlAuditMappingPayload", 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_createControlAuditMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteControlAuditMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteControlAuditMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteControlAuditMapping(rctx, fc.Args["input"].(types.DeleteControlAuditMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteControlAuditMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteControlAuditMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlAuditMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteControlAuditMapping(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 "deletedControlId":
|
|
return ec.fieldContext_DeleteControlAuditMappingPayload_deletedControlId(ctx, field)
|
|
case "deletedAuditId":
|
|
return ec.fieldContext_DeleteControlAuditMappingPayload_deletedAuditId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteControlAuditMappingPayload", 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_deleteControlAuditMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createControlSnapshotMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createControlSnapshotMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateControlSnapshotMapping(rctx, fc.Args["input"].(types.CreateControlSnapshotMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateControlSnapshotMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateControlSnapshotMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlSnapshotMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createControlSnapshotMapping(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 "controlEdge":
|
|
return ec.fieldContext_CreateControlSnapshotMappingPayload_controlEdge(ctx, field)
|
|
case "snapshotEdge":
|
|
return ec.fieldContext_CreateControlSnapshotMappingPayload_snapshotEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateControlSnapshotMappingPayload", 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_createControlSnapshotMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteControlSnapshotMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteControlSnapshotMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteControlSnapshotMapping(rctx, fc.Args["input"].(types.DeleteControlSnapshotMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteControlSnapshotMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteControlSnapshotMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlSnapshotMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteControlSnapshotMapping(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 "deletedControlId":
|
|
return ec.fieldContext_DeleteControlSnapshotMappingPayload_deletedControlId(ctx, field)
|
|
case "deletedSnapshotId":
|
|
return ec.fieldContext_DeleteControlSnapshotMappingPayload_deletedSnapshotId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteControlSnapshotMappingPayload", 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_deleteControlSnapshotMapping_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_createRiskMeasureMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createRiskMeasureMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateRiskMeasureMapping(rctx, fc.Args["input"].(types.CreateRiskMeasureMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateRiskMeasureMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateRiskMeasureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMeasureMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createRiskMeasureMapping(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_CreateRiskMeasureMappingPayload_riskEdge(ctx, field)
|
|
case "measureEdge":
|
|
return ec.fieldContext_CreateRiskMeasureMappingPayload_measureEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateRiskMeasureMappingPayload", 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_createRiskMeasureMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteRiskMeasureMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteRiskMeasureMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteRiskMeasureMapping(rctx, fc.Args["input"].(types.DeleteRiskMeasureMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteRiskMeasureMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteRiskMeasureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMeasureMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteRiskMeasureMapping(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 "deletedMeasureId":
|
|
return ec.fieldContext_DeleteRiskMeasureMappingPayload_deletedMeasureId(ctx, field)
|
|
case "deletedRiskId":
|
|
return ec.fieldContext_DeleteRiskMeasureMappingPayload_deletedRiskId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteRiskMeasureMappingPayload", 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_deleteRiskMeasureMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createRiskDocumentMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createRiskDocumentMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateRiskDocumentMapping(rctx, fc.Args["input"].(types.CreateRiskDocumentMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateRiskDocumentMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateRiskDocumentMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskDocumentMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createRiskDocumentMapping(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_CreateRiskDocumentMappingPayload_riskEdge(ctx, field)
|
|
case "documentEdge":
|
|
return ec.fieldContext_CreateRiskDocumentMappingPayload_documentEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateRiskDocumentMappingPayload", 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_createRiskDocumentMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteRiskDocumentMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteRiskDocumentMapping(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteRiskDocumentMapping(rctx, fc.Args["input"].(types.DeleteRiskDocumentMappingInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteRiskDocumentMappingPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteRiskDocumentMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskDocumentMappingPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteRiskDocumentMapping(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_DeleteRiskDocumentMappingPayload_deletedRiskId(ctx, field)
|
|
case "deletedDocumentId":
|
|
return ec.fieldContext_DeleteRiskDocumentMappingPayload_deletedDocumentId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteRiskDocumentMappingPayload", 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_deleteRiskDocumentMapping_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_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_uploadTaskEvidence(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_uploadTaskEvidence(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UploadTaskEvidence(rctx, fc.Args["input"].(types.UploadTaskEvidenceInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UploadTaskEvidencePayload)
|
|
fc.Result = res
|
|
return ec.marshalNUploadTaskEvidencePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadTaskEvidencePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_uploadTaskEvidence(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_UploadTaskEvidencePayload_evidenceEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UploadTaskEvidencePayload", 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_uploadTaskEvidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_uploadMeasureEvidence(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_uploadMeasureEvidence(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UploadMeasureEvidence(rctx, fc.Args["input"].(types.UploadMeasureEvidenceInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UploadMeasureEvidencePayload)
|
|
fc.Result = res
|
|
return ec.marshalNUploadMeasureEvidencePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadMeasureEvidencePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_uploadMeasureEvidence(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_UploadMeasureEvidencePayload_evidenceEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UploadMeasureEvidencePayload", 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_uploadMeasureEvidence_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_uploadVendorBusinessAssociateAgreement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_uploadVendorBusinessAssociateAgreement(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UploadVendorBusinessAssociateAgreement(rctx, fc.Args["input"].(types.UploadVendorBusinessAssociateAgreementInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UploadVendorBusinessAssociateAgreementPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUploadVendorBusinessAssociateAgreementPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorBusinessAssociateAgreementPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_uploadVendorBusinessAssociateAgreement(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 "vendorBusinessAssociateAgreement":
|
|
return ec.fieldContext_UploadVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UploadVendorBusinessAssociateAgreementPayload", 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_uploadVendorBusinessAssociateAgreement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateVendorBusinessAssociateAgreement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateVendorBusinessAssociateAgreement(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateVendorBusinessAssociateAgreement(rctx, fc.Args["input"].(types.UpdateVendorBusinessAssociateAgreementInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateVendorBusinessAssociateAgreementPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateVendorBusinessAssociateAgreementPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorBusinessAssociateAgreementPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateVendorBusinessAssociateAgreement(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 "vendorBusinessAssociateAgreement":
|
|
return ec.fieldContext_UpdateVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateVendorBusinessAssociateAgreementPayload", 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_updateVendorBusinessAssociateAgreement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteVendorBusinessAssociateAgreement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteVendorBusinessAssociateAgreement(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteVendorBusinessAssociateAgreement(rctx, fc.Args["input"].(types.DeleteVendorBusinessAssociateAgreementInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteVendorBusinessAssociateAgreementPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteVendorBusinessAssociateAgreementPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorBusinessAssociateAgreementPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteVendorBusinessAssociateAgreement(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_DeleteVendorBusinessAssociateAgreementPayload_deletedVendorId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteVendorBusinessAssociateAgreementPayload", 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_deleteVendorBusinessAssociateAgreement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_uploadVendorDataPrivacyAgreement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_uploadVendorDataPrivacyAgreement(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UploadVendorDataPrivacyAgreement(rctx, fc.Args["input"].(types.UploadVendorDataPrivacyAgreementInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UploadVendorDataPrivacyAgreementPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUploadVendorDataPrivacyAgreementPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorDataPrivacyAgreementPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_uploadVendorDataPrivacyAgreement(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 "vendorDataPrivacyAgreement":
|
|
return ec.fieldContext_UploadVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UploadVendorDataPrivacyAgreementPayload", 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_uploadVendorDataPrivacyAgreement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateVendorDataPrivacyAgreement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateVendorDataPrivacyAgreement(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateVendorDataPrivacyAgreement(rctx, fc.Args["input"].(types.UpdateVendorDataPrivacyAgreementInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateVendorDataPrivacyAgreementPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateVendorDataPrivacyAgreementPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorDataPrivacyAgreementPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateVendorDataPrivacyAgreement(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 "vendorDataPrivacyAgreement":
|
|
return ec.fieldContext_UpdateVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateVendorDataPrivacyAgreementPayload", 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_updateVendorDataPrivacyAgreement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteVendorDataPrivacyAgreement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteVendorDataPrivacyAgreement(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteVendorDataPrivacyAgreement(rctx, fc.Args["input"].(types.DeleteVendorDataPrivacyAgreementInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteVendorDataPrivacyAgreementPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteVendorDataPrivacyAgreementPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorDataPrivacyAgreementPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteVendorDataPrivacyAgreement(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_DeleteVendorDataPrivacyAgreementPayload_deletedVendorId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteVendorDataPrivacyAgreementPayload", 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_deleteVendorDataPrivacyAgreement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createDocument(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateDocument(rctx, fc.Args["input"].(types.CreateDocumentInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateDocumentPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateDocumentPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDocumentPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createDocument(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 "documentEdge":
|
|
return ec.fieldContext_CreateDocumentPayload_documentEdge(ctx, field)
|
|
case "documentVersionEdge":
|
|
return ec.fieldContext_CreateDocumentPayload_documentVersionEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateDocumentPayload", 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_createDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateDocument(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateDocument(rctx, fc.Args["input"].(types.UpdateDocumentInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateDocumentPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateDocumentPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateDocument(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 "document":
|
|
return ec.fieldContext_UpdateDocumentPayload_document(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateDocumentPayload", 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_updateDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteDocument(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteDocument(rctx, fc.Args["input"].(types.DeleteDocumentInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteDocumentPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteDocumentPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDocumentPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteDocument(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 "deletedDocumentId":
|
|
return ec.fieldContext_DeleteDocumentPayload_deletedDocumentId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteDocumentPayload", 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_deleteDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_publishDocumentVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_publishDocumentVersion(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().PublishDocumentVersion(rctx, fc.Args["input"].(types.PublishDocumentVersionInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.PublishDocumentVersionPayload)
|
|
fc.Result = res
|
|
return ec.marshalNPublishDocumentVersionPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPublishDocumentVersionPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_publishDocumentVersion(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 "documentVersion":
|
|
return ec.fieldContext_PublishDocumentVersionPayload_documentVersion(ctx, field)
|
|
case "document":
|
|
return ec.fieldContext_PublishDocumentVersionPayload_document(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PublishDocumentVersionPayload", 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_publishDocumentVersion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_bulkPublishDocumentVersions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_bulkPublishDocumentVersions(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().BulkPublishDocumentVersions(rctx, fc.Args["input"].(types.BulkPublishDocumentVersionsInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.BulkPublishDocumentVersionsPayload)
|
|
fc.Result = res
|
|
return ec.marshalNBulkPublishDocumentVersionsPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkPublishDocumentVersionsPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_bulkPublishDocumentVersions(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 "documentVersionEdges":
|
|
return ec.fieldContext_BulkPublishDocumentVersionsPayload_documentVersionEdges(ctx, field)
|
|
case "documentEdges":
|
|
return ec.fieldContext_BulkPublishDocumentVersionsPayload_documentEdges(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type BulkPublishDocumentVersionsPayload", 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_bulkPublishDocumentVersions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_generateDocumentChangelog(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_generateDocumentChangelog(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().GenerateDocumentChangelog(rctx, fc.Args["input"].(types.GenerateDocumentChangelogInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.GenerateDocumentChangelogPayload)
|
|
fc.Result = res
|
|
return ec.marshalNGenerateDocumentChangelogPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateDocumentChangelogPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_generateDocumentChangelog(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 "changelog":
|
|
return ec.fieldContext_GenerateDocumentChangelogPayload_changelog(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type GenerateDocumentChangelogPayload", 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_generateDocumentChangelog_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createDraftDocumentVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createDraftDocumentVersion(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateDraftDocumentVersion(rctx, fc.Args["input"].(types.CreateDraftDocumentVersionInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateDraftDocumentVersionPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateDraftDocumentVersionPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDraftDocumentVersionPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createDraftDocumentVersion(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 "documentVersionEdge":
|
|
return ec.fieldContext_CreateDraftDocumentVersionPayload_documentVersionEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateDraftDocumentVersionPayload", 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_createDraftDocumentVersion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteDraftDocumentVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteDraftDocumentVersion(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteDraftDocumentVersion(rctx, fc.Args["input"].(types.DeleteDraftDocumentVersionInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteDraftDocumentVersionPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteDraftDocumentVersionPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDraftDocumentVersionPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteDraftDocumentVersion(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 "deletedDocumentVersionId":
|
|
return ec.fieldContext_DeleteDraftDocumentVersionPayload_deletedDocumentVersionId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteDraftDocumentVersionPayload", 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_deleteDraftDocumentVersion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateDocumentVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateDocumentVersion(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateDocumentVersion(rctx, fc.Args["input"].(types.UpdateDocumentVersionInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateDocumentVersionPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateDocumentVersionPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentVersionPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateDocumentVersion(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 "documentVersion":
|
|
return ec.fieldContext_UpdateDocumentVersionPayload_documentVersion(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateDocumentVersionPayload", 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_updateDocumentVersion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_requestSignature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_requestSignature(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().RequestSignature(rctx, fc.Args["input"].(types.RequestSignatureInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.RequestSignaturePayload)
|
|
fc.Result = res
|
|
return ec.marshalNRequestSignaturePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestSignaturePayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_requestSignature(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 "documentVersionSignatureEdge":
|
|
return ec.fieldContext_RequestSignaturePayload_documentVersionSignatureEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type RequestSignaturePayload", 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_requestSignature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_bulkRequestSignatures(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_bulkRequestSignatures(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().BulkRequestSignatures(rctx, fc.Args["input"].(types.BulkRequestSignaturesInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.BulkRequestSignaturesPayload)
|
|
fc.Result = res
|
|
return ec.marshalNBulkRequestSignaturesPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkRequestSignaturesPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_bulkRequestSignatures(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 "documentVersionSignatureEdges":
|
|
return ec.fieldContext_BulkRequestSignaturesPayload_documentVersionSignatureEdges(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type BulkRequestSignaturesPayload", 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_bulkRequestSignatures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_sendSigningNotifications(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_sendSigningNotifications(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().SendSigningNotifications(rctx, fc.Args["input"].(types.SendSigningNotificationsInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.SendSigningNotificationsPayload)
|
|
fc.Result = res
|
|
return ec.marshalNSendSigningNotificationsPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendSigningNotificationsPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_sendSigningNotifications(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_SendSigningNotificationsPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SendSigningNotificationsPayload", 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_sendSigningNotifications_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_cancelSignatureRequest(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_cancelSignatureRequest(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CancelSignatureRequest(rctx, fc.Args["input"].(types.CancelSignatureRequestInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CancelSignatureRequestPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCancelSignatureRequestPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCancelSignatureRequestPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_cancelSignatureRequest(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 "deletedDocumentVersionSignatureId":
|
|
return ec.fieldContext_CancelSignatureRequestPayload_deletedDocumentVersionSignatureId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CancelSignatureRequestPayload", 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_cancelSignatureRequest_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_exportDocumentVersionPDF(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_exportDocumentVersionPDF(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().ExportDocumentVersionPDF(rctx, fc.Args["input"].(types.ExportDocumentVersionPDFInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.ExportDocumentVersionPDFPayload)
|
|
fc.Result = res
|
|
return ec.marshalNExportDocumentVersionPDFPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDocumentVersionPDFPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_exportDocumentVersionPDF(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 "data":
|
|
return ec.fieldContext_ExportDocumentVersionPDFPayload_data(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ExportDocumentVersionPDFPayload", 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_exportDocumentVersionPDF_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) _Mutation_assessVendor(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_assessVendor(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().AssessVendor(rctx, fc.Args["input"].(types.AssessVendorInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.AssessVendorPayload)
|
|
fc.Result = res
|
|
return ec.marshalNAssessVendorPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssessVendorPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_assessVendor(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_AssessVendorPayload_vendor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type AssessVendorPayload", 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_assessVendor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createAsset(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createAsset(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateAsset(rctx, fc.Args["input"].(types.CreateAssetInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateAssetPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateAssetPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAssetPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createAsset(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 "assetEdge":
|
|
return ec.fieldContext_CreateAssetPayload_assetEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateAssetPayload", 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_createAsset_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateAsset(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateAsset(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateAsset(rctx, fc.Args["input"].(types.UpdateAssetInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateAssetPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateAssetPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAssetPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateAsset(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 "asset":
|
|
return ec.fieldContext_UpdateAssetPayload_asset(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateAssetPayload", 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_updateAsset_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteAsset(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteAsset(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteAsset(rctx, fc.Args["input"].(types.DeleteAssetInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteAssetPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteAssetPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAssetPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteAsset(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 "deletedAssetId":
|
|
return ec.fieldContext_DeleteAssetPayload_deletedAssetId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteAssetPayload", 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_deleteAsset_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createDatum(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createDatum(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateDatum(rctx, fc.Args["input"].(types.CreateDatumInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateDatumPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateDatumPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDatumPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createDatum(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 "datumEdge":
|
|
return ec.fieldContext_CreateDatumPayload_datumEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateDatumPayload", 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_createDatum_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateDatum(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateDatum(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateDatum(rctx, fc.Args["input"].(types.UpdateDatumInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateDatumPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateDatumPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDatumPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateDatum(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 "datum":
|
|
return ec.fieldContext_UpdateDatumPayload_datum(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateDatumPayload", 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_updateDatum_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteDatum(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteDatum(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteDatum(rctx, fc.Args["input"].(types.DeleteDatumInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteDatumPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteDatumPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDatumPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteDatum(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 "deletedDatumId":
|
|
return ec.fieldContext_DeleteDatumPayload_deletedDatumId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteDatumPayload", 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_deleteDatum_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createAudit(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createAudit(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateAudit(rctx, fc.Args["input"].(types.CreateAuditInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateAuditPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateAuditPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAuditPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createAudit(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 "auditEdge":
|
|
return ec.fieldContext_CreateAuditPayload_auditEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateAuditPayload", 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_createAudit_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateAudit(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateAudit(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateAudit(rctx, fc.Args["input"].(types.UpdateAuditInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateAuditPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateAuditPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAuditPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateAudit(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 "audit":
|
|
return ec.fieldContext_UpdateAuditPayload_audit(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateAuditPayload", 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_updateAudit_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteAudit(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteAudit(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteAudit(rctx, fc.Args["input"].(types.DeleteAuditInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteAuditPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteAuditPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteAudit(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 "deletedAuditId":
|
|
return ec.fieldContext_DeleteAuditPayload_deletedAuditId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteAuditPayload", 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_deleteAudit_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_uploadAuditReport(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_uploadAuditReport(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UploadAuditReport(rctx, fc.Args["input"].(types.UploadAuditReportInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UploadAuditReportPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUploadAuditReportPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadAuditReportPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_uploadAuditReport(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 "audit":
|
|
return ec.fieldContext_UploadAuditReportPayload_audit(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UploadAuditReportPayload", 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_uploadAuditReport_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteAuditReport(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteAuditReport(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteAuditReport(rctx, fc.Args["input"].(types.DeleteAuditReportInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteAuditReportPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteAuditReportPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditReportPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteAuditReport(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 "audit":
|
|
return ec.fieldContext_DeleteAuditReportPayload_audit(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteAuditReportPayload", 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_deleteAuditReport_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createNonconformityRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createNonconformityRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateNonconformityRegistry(rctx, fc.Args["input"].(types.CreateNonconformityRegistryInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateNonconformityRegistryPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateNonconformityRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateNonconformityRegistryPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createNonconformityRegistry(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 "nonconformityRegistryEdge":
|
|
return ec.fieldContext_CreateNonconformityRegistryPayload_nonconformityRegistryEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateNonconformityRegistryPayload", 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_createNonconformityRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateNonconformityRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateNonconformityRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateNonconformityRegistry(rctx, fc.Args["input"].(types.UpdateNonconformityRegistryInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateNonconformityRegistryPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateNonconformityRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateNonconformityRegistryPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateNonconformityRegistry(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 "nonconformityRegistry":
|
|
return ec.fieldContext_UpdateNonconformityRegistryPayload_nonconformityRegistry(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateNonconformityRegistryPayload", 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_updateNonconformityRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteNonconformityRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteNonconformityRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteNonconformityRegistry(rctx, fc.Args["input"].(types.DeleteNonconformityRegistryInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteNonconformityRegistryPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteNonconformityRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteNonconformityRegistryPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteNonconformityRegistry(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 "deletedNonconformityRegistryId":
|
|
return ec.fieldContext_DeleteNonconformityRegistryPayload_deletedNonconformityRegistryId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteNonconformityRegistryPayload", 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_deleteNonconformityRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createComplianceRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createComplianceRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateComplianceRegistry(rctx, fc.Args["input"].(types.CreateComplianceRegistryInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateComplianceRegistryPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateComplianceRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceRegistryPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createComplianceRegistry(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 "complianceRegistryEdge":
|
|
return ec.fieldContext_CreateComplianceRegistryPayload_complianceRegistryEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateComplianceRegistryPayload", 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_createComplianceRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateComplianceRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateComplianceRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateComplianceRegistry(rctx, fc.Args["input"].(types.UpdateComplianceRegistryInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateComplianceRegistryPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateComplianceRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceRegistryPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateComplianceRegistry(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 "complianceRegistry":
|
|
return ec.fieldContext_UpdateComplianceRegistryPayload_complianceRegistry(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateComplianceRegistryPayload", 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_updateComplianceRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteComplianceRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteComplianceRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteComplianceRegistry(rctx, fc.Args["input"].(types.DeleteComplianceRegistryInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteComplianceRegistryPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteComplianceRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceRegistryPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteComplianceRegistry(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 "deletedComplianceRegistryId":
|
|
return ec.fieldContext_DeleteComplianceRegistryPayload_deletedComplianceRegistryId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteComplianceRegistryPayload", 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_deleteComplianceRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createContinualImprovementRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createContinualImprovementRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateContinualImprovementRegistry(rctx, fc.Args["input"].(types.CreateContinualImprovementRegistryInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateContinualImprovementRegistryPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateContinualImprovementRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateContinualImprovementRegistryPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createContinualImprovementRegistry(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 "continualImprovementRegistryEdge":
|
|
return ec.fieldContext_CreateContinualImprovementRegistryPayload_continualImprovementRegistryEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateContinualImprovementRegistryPayload", 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_createContinualImprovementRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateContinualImprovementRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateContinualImprovementRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateContinualImprovementRegistry(rctx, fc.Args["input"].(types.UpdateContinualImprovementRegistryInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateContinualImprovementRegistryPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateContinualImprovementRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateContinualImprovementRegistryPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateContinualImprovementRegistry(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 "continualImprovementRegistry":
|
|
return ec.fieldContext_UpdateContinualImprovementRegistryPayload_continualImprovementRegistry(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateContinualImprovementRegistryPayload", 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_updateContinualImprovementRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteContinualImprovementRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteContinualImprovementRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteContinualImprovementRegistry(rctx, fc.Args["input"].(types.DeleteContinualImprovementRegistryInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteContinualImprovementRegistryPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteContinualImprovementRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteContinualImprovementRegistryPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteContinualImprovementRegistry(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 "deletedContinualImprovementRegistryId":
|
|
return ec.fieldContext_DeleteContinualImprovementRegistryPayload_deletedContinualImprovementRegistryId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteContinualImprovementRegistryPayload", 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_deleteContinualImprovementRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createProcessingActivityRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createProcessingActivityRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateProcessingActivityRegistry(rctx, fc.Args["input"].(types.CreateProcessingActivityRegistryInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateProcessingActivityRegistryPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateProcessingActivityRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateProcessingActivityRegistryPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createProcessingActivityRegistry(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 "processingActivityRegistryEdge":
|
|
return ec.fieldContext_CreateProcessingActivityRegistryPayload_processingActivityRegistryEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateProcessingActivityRegistryPayload", 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_createProcessingActivityRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateProcessingActivityRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_updateProcessingActivityRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().UpdateProcessingActivityRegistry(rctx, fc.Args["input"].(types.UpdateProcessingActivityRegistryInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.UpdateProcessingActivityRegistryPayload)
|
|
fc.Result = res
|
|
return ec.marshalNUpdateProcessingActivityRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateProcessingActivityRegistryPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateProcessingActivityRegistry(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 "processingActivityRegistry":
|
|
return ec.fieldContext_UpdateProcessingActivityRegistryPayload_processingActivityRegistry(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateProcessingActivityRegistryPayload", 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_updateProcessingActivityRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteProcessingActivityRegistry(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteProcessingActivityRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteProcessingActivityRegistry(rctx, fc.Args["input"].(types.DeleteProcessingActivityRegistryInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteProcessingActivityRegistryPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteProcessingActivityRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteProcessingActivityRegistryPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteProcessingActivityRegistry(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 "deletedProcessingActivityRegistryId":
|
|
return ec.fieldContext_DeleteProcessingActivityRegistryPayload_deletedProcessingActivityRegistryId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteProcessingActivityRegistryPayload", 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_deleteProcessingActivityRegistry_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createSnapshot(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_createSnapshot(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().CreateSnapshot(rctx, fc.Args["input"].(types.CreateSnapshotInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.CreateSnapshotPayload)
|
|
fc.Result = res
|
|
return ec.marshalNCreateSnapshotPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateSnapshotPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createSnapshot(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 "snapshotEdge":
|
|
return ec.fieldContext_CreateSnapshotPayload_snapshotEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateSnapshotPayload", 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_createSnapshot_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteSnapshot(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Mutation_deleteSnapshot(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DeleteSnapshot(rctx, fc.Args["input"].(types.DeleteSnapshotInput))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DeleteSnapshotPayload)
|
|
fc.Result = res
|
|
return ec.marshalNDeleteSnapshotPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteSnapshotPayload(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteSnapshot(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 "deletedSnapshotId":
|
|
return ec.fieldContext_DeleteSnapshotPayload_deletedSnapshotId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteSnapshotPayload", 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_deleteSnapshot_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _NonconformityRegistry_id(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_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_NonconformityRegistry_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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) _NonconformityRegistry_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_snapshotId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SnapshotID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_NonconformityRegistry_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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) _NonconformityRegistry_organization(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_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 ec.resolvers.NonconformityRegistry().Organization(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.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_NonconformityRegistry_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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_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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _NonconformityRegistry_referenceId(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_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_NonconformityRegistry_referenceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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) _NonconformityRegistry_description(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_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_NonconformityRegistry_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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) _NonconformityRegistry_audit(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_audit(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.NonconformityRegistry().Audit(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.Audit)
|
|
fc.Result = res
|
|
return ec.marshalNAudit2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_NonconformityRegistry_audit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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_Audit_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Audit_name(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Audit_organization(ctx, field)
|
|
case "framework":
|
|
return ec.fieldContext_Audit_framework(ctx, field)
|
|
case "validFrom":
|
|
return ec.fieldContext_Audit_validFrom(ctx, field)
|
|
case "validUntil":
|
|
return ec.fieldContext_Audit_validUntil(ctx, field)
|
|
case "report":
|
|
return ec.fieldContext_Audit_report(ctx, field)
|
|
case "reportUrl":
|
|
return ec.fieldContext_Audit_reportUrl(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Audit_state(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Audit_controls(ctx, field)
|
|
case "showOnTrustCenter":
|
|
return ec.fieldContext_Audit_showOnTrustCenter(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Audit_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Audit_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Audit", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _NonconformityRegistry_dateIdentified(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_dateIdentified(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DateIdentified, 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_NonconformityRegistry_dateIdentified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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) _NonconformityRegistry_rootCause(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_rootCause(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.RootCause, 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_NonconformityRegistry_rootCause(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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) _NonconformityRegistry_correctiveAction(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_correctiveAction(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.CorrectiveAction, 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_NonconformityRegistry_correctiveAction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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) _NonconformityRegistry_owner(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_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.NonconformityRegistry().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_NonconformityRegistry_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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) _NonconformityRegistry_dueDate(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_dueDate(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DueDate, 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_NonconformityRegistry_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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) _NonconformityRegistry_status(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_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.NonconformityRegistryStatus)
|
|
fc.Result = res
|
|
return ec.marshalNNonconformityRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_NonconformityRegistry_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type NonconformityRegistryStatus does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _NonconformityRegistry_effectivenessCheck(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_effectivenessCheck(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.EffectivenessCheck, 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_NonconformityRegistry_effectivenessCheck(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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) _NonconformityRegistry_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_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_NonconformityRegistry_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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) _NonconformityRegistry_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistry_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_NonconformityRegistry_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistry",
|
|
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) _NonconformityRegistryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistryConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistryConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.NonconformityRegistryConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_NonconformityRegistryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistryConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _NonconformityRegistryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistryConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistryConnection_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.NonconformityRegistryEdge)
|
|
fc.Result = res
|
|
return ec.marshalNNonconformityRegistryEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistryEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_NonconformityRegistryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistryConnection",
|
|
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_NonconformityRegistryEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_NonconformityRegistryEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type NonconformityRegistryEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _NonconformityRegistryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistryConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistryConnection_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.marshalNPageInfo2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_NonconformityRegistryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistryConnection",
|
|
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) _NonconformityRegistryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistryEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistryEdge_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_NonconformityRegistryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistryEdge",
|
|
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) _NonconformityRegistryEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityRegistryEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_NonconformityRegistryEdge_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.NonconformityRegistry)
|
|
fc.Result = res
|
|
return ec.marshalNNonconformityRegistry2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistry(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_NonconformityRegistryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "NonconformityRegistryEdge",
|
|
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_NonconformityRegistry_id(ctx, field)
|
|
case "snapshotId":
|
|
return ec.fieldContext_NonconformityRegistry_snapshotId(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_NonconformityRegistry_organization(ctx, field)
|
|
case "referenceId":
|
|
return ec.fieldContext_NonconformityRegistry_referenceId(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_NonconformityRegistry_description(ctx, field)
|
|
case "audit":
|
|
return ec.fieldContext_NonconformityRegistry_audit(ctx, field)
|
|
case "dateIdentified":
|
|
return ec.fieldContext_NonconformityRegistry_dateIdentified(ctx, field)
|
|
case "rootCause":
|
|
return ec.fieldContext_NonconformityRegistry_rootCause(ctx, field)
|
|
case "correctiveAction":
|
|
return ec.fieldContext_NonconformityRegistry_correctiveAction(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_NonconformityRegistry_owner(ctx, field)
|
|
case "dueDate":
|
|
return ec.fieldContext_NonconformityRegistry_dueDate(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_NonconformityRegistry_status(ctx, field)
|
|
case "effectivenessCheck":
|
|
return ec.fieldContext_NonconformityRegistry_effectivenessCheck(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_NonconformityRegistry_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_NonconformityRegistry_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type NonconformityRegistry", field.Name)
|
|
},
|
|
}
|
|
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 "totalCount":
|
|
return ec.fieldContext_FrameworkConnection_totalCount(ctx, field)
|
|
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_controls(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_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.Organization().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), fc.Args["filter"].(*types.ControlFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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_Organization_controls(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 "totalCount":
|
|
return ec.fieldContext_ControlConnection_totalCount(ctx, field)
|
|
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_Organization_controls_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 "totalCount":
|
|
return ec.fieldContext_VendorConnection_totalCount(ctx, field)
|
|
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), fc.Args["filter"].(*types.PeopleFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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 "totalCount":
|
|
return ec.fieldContext_PeopleConnection_totalCount(ctx, field)
|
|
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_documents(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_documents(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Documents(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DocumentOrderBy), fc.Args["filter"].(*types.DocumentFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DocumentConnection)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_documents(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 "totalCount":
|
|
return ec.fieldContext_DocumentConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_DocumentConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_DocumentConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentConnection", 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_documents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_measures(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_measures(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Measures(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.MeasureOrderBy), fc.Args["filter"].(*types.MeasureFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.MeasureConnection)
|
|
fc.Result = res
|
|
return ec.marshalNMeasureConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_measures(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 "totalCount":
|
|
return ec.fieldContext_MeasureConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_MeasureConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_MeasureConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MeasureConnection", 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_measures_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), fc.Args["filter"].(*types.RiskFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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 "totalCount":
|
|
return ec.fieldContext_RiskConnection_totalCount(ctx, field)
|
|
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_tasks(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_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.Organization().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_Organization_tasks(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 "totalCount":
|
|
return ec.fieldContext_TaskConnection_totalCount(ctx, field)
|
|
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_Organization_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_assets(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_assets(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Assets(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.AssetOrderBy), fc.Args["filter"].(*types.AssetFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.AssetConnection)
|
|
fc.Result = res
|
|
return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_assets(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 "totalCount":
|
|
return ec.fieldContext_AssetConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_AssetConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_AssetConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type AssetConnection", 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_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_data(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_data(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Data(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DatumOrderBy), fc.Args["filter"].(*types.DatumFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DatumConnection)
|
|
fc.Result = res
|
|
return ec.marshalNDatumConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_data(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 "totalCount":
|
|
return ec.fieldContext_DatumConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_DatumConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_DatumConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DatumConnection", 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_data_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_audits(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_audits(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Audits(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.AuditOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.AuditConnection)
|
|
fc.Result = res
|
|
return ec.marshalNAuditConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_audits(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 "totalCount":
|
|
return ec.fieldContext_AuditConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_AuditConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_AuditConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type AuditConnection", 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_audits_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_nonconformityRegistries(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().NonconformityRegistries(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.NonconformityRegistryOrderBy), fc.Args["filter"].(*types.NonconformityRegistryFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.NonconformityRegistryConnection)
|
|
fc.Result = res
|
|
return ec.marshalNNonconformityRegistryConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistryConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_nonconformityRegistries(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 "totalCount":
|
|
return ec.fieldContext_NonconformityRegistryConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_NonconformityRegistryConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_NonconformityRegistryConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type NonconformityRegistryConnection", 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_nonconformityRegistries_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_complianceRegistries(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().ComplianceRegistries(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ComplianceRegistryOrderBy), fc.Args["filter"].(*types.ComplianceRegistryFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.ComplianceRegistryConnection)
|
|
fc.Result = res
|
|
return ec.marshalNComplianceRegistryConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistryConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_complianceRegistries(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 "totalCount":
|
|
return ec.fieldContext_ComplianceRegistryConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_ComplianceRegistryConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_ComplianceRegistryConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ComplianceRegistryConnection", 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_complianceRegistries_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_continualImprovementRegistries(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().ContinualImprovementRegistries(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ContinualImprovementRegistriesOrderBy), fc.Args["filter"].(*types.ContinualImprovementRegistryFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.ContinualImprovementRegistryConnection)
|
|
fc.Result = res
|
|
return ec.marshalNContinualImprovementRegistryConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistryConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_continualImprovementRegistries(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 "totalCount":
|
|
return ec.fieldContext_ContinualImprovementRegistryConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_ContinualImprovementRegistryConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_ContinualImprovementRegistryConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ContinualImprovementRegistryConnection", 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_continualImprovementRegistries_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_processingActivityRegistries(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().ProcessingActivityRegistries(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ProcessingActivityRegistryOrderBy), fc.Args["filter"].(*types.ProcessingActivityRegistryFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.ProcessingActivityRegistryConnection)
|
|
fc.Result = res
|
|
return ec.marshalNProcessingActivityRegistryConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistryConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_processingActivityRegistries(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 "totalCount":
|
|
return ec.fieldContext_ProcessingActivityRegistryConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_ProcessingActivityRegistryConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_ProcessingActivityRegistryConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ProcessingActivityRegistryConnection", 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_processingActivityRegistries_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_snapshots(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_snapshots(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Snapshots(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.SnapshotOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.SnapshotConnection)
|
|
fc.Result = res
|
|
return ec.marshalNSnapshotConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_snapshots(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 "totalCount":
|
|
return ec.fieldContext_SnapshotConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_SnapshotConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_SnapshotConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SnapshotConnection", 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_snapshots_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_trustCenter(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Organization_trustCenter(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().TrustCenter(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.TrustCenter)
|
|
fc.Result = res
|
|
return ec.marshalOTrustCenter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenter(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_trustCenter(_ 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 "id":
|
|
return ec.fieldContext_TrustCenter_id(ctx, field)
|
|
case "active":
|
|
return ec.fieldContext_TrustCenter_active(ctx, field)
|
|
case "slug":
|
|
return ec.fieldContext_TrustCenter_slug(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_TrustCenter_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_TrustCenter_updatedAt(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_TrustCenter_organization(ctx, field)
|
|
case "accesses":
|
|
return ec.fieldContext_TrustCenter_accesses(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type TrustCenter", field.Name)
|
|
},
|
|
}
|
|
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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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_position(ctx context.Context, field graphql.CollectedField, obj *types.People) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_People_position(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Position, 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_People_position(_ 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_contractStartDate(ctx context.Context, field graphql.CollectedField, obj *types.People) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_People_contractStartDate(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ContractStartDate, 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_People_contractStartDate(_ 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_contractEndDate(ctx context.Context, field graphql.CollectedField, obj *types.People) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_People_contractEndDate(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ContractEndDate, 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_People_contractEndDate(_ 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_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_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.PeopleConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PeopleConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.PeopleConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PeopleConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PeopleConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _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.marshalNPageInfo2githubᚗ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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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) _ProcessingActivityRegistry_id(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_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_ProcessingActivityRegistry_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_snapshotId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SnapshotID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProcessingActivityRegistry_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_sourceId(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_sourceId(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SourceID, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*gid.GID)
|
|
fc.Result = res
|
|
return ec.marshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProcessingActivityRegistry_sourceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_organization(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_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 ec.resolvers.ProcessingActivityRegistry().Organization(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.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_ProcessingActivityRegistry_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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_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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _ProcessingActivityRegistry_name(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_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_ProcessingActivityRegistry_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_purpose(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_purpose(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Purpose, 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_ProcessingActivityRegistry_purpose(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_dataSubjectCategory(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_dataSubjectCategory(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DataSubjectCategory, 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_ProcessingActivityRegistry_dataSubjectCategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_personalDataCategory(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_personalDataCategory(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.PersonalDataCategory, 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_ProcessingActivityRegistry_personalDataCategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_specialOrCriminalData(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_specialOrCriminalData(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SpecialOrCriminalData, 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.ProcessingActivityRegistrySpecialOrCriminalData)
|
|
fc.Result = res
|
|
return ec.marshalNProcessingActivityRegistrySpecialOrCriminalData2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProcessingActivityRegistry_specialOrCriminalData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ProcessingActivityRegistrySpecialOrCriminalData does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ProcessingActivityRegistry_consentEvidenceLink(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_consentEvidenceLink(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ConsentEvidenceLink, 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_ProcessingActivityRegistry_consentEvidenceLink(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_lawfulBasis(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_lawfulBasis(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.LawfulBasis, 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.ProcessingActivityRegistryLawfulBasis)
|
|
fc.Result = res
|
|
return ec.marshalNProcessingActivityRegistryLawfulBasis2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProcessingActivityRegistry_lawfulBasis(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ProcessingActivityRegistryLawfulBasis does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ProcessingActivityRegistry_recipients(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_recipients(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Recipients, 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_ProcessingActivityRegistry_recipients(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_location(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_location(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Location, 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_ProcessingActivityRegistry_location(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_internationalTransfers(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_internationalTransfers(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.InternationalTransfers, 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_ProcessingActivityRegistry_internationalTransfers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_transferSafeguards(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_transferSafeguards(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.TransferSafeguards, nil
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*coredata.ProcessingActivityRegistryTransferSafeguards)
|
|
fc.Result = res
|
|
return ec.marshalOProcessingActivityRegistryTransferSafeguards2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferSafeguards(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProcessingActivityRegistry_transferSafeguards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ProcessingActivityRegistryTransferSafeguards does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ProcessingActivityRegistry_retentionPeriod(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_retentionPeriod(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.RetentionPeriod, 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_ProcessingActivityRegistry_retentionPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_securityMeasures(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_securityMeasures(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SecurityMeasures, 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_ProcessingActivityRegistry_securityMeasures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_dataProtectionImpactAssessment(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_dataProtectionImpactAssessment(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DataProtectionImpactAssessment, 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.ProcessingActivityRegistryDataProtectionImpactAssessment)
|
|
fc.Result = res
|
|
return ec.marshalNProcessingActivityRegistryDataProtectionImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProcessingActivityRegistry_dataProtectionImpactAssessment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ProcessingActivityRegistryDataProtectionImpactAssessment does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ProcessingActivityRegistry_transferImpactAssessment(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_transferImpactAssessment(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.TransferImpactAssessment, 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.ProcessingActivityRegistryTransferImpactAssessment)
|
|
fc.Result = res
|
|
return ec.marshalNProcessingActivityRegistryTransferImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProcessingActivityRegistry_transferImpactAssessment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ProcessingActivityRegistryTransferImpactAssessment does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ProcessingActivityRegistry_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_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_ProcessingActivityRegistry_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistry_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistry) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistry_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_ProcessingActivityRegistry_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistry",
|
|
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) _ProcessingActivityRegistryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistryConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistryConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.ProcessingActivityRegistryConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProcessingActivityRegistryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistryConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _ProcessingActivityRegistryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistryConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistryConnection_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.ProcessingActivityRegistryEdge)
|
|
fc.Result = res
|
|
return ec.marshalNProcessingActivityRegistryEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistryEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProcessingActivityRegistryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistryConnection",
|
|
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_ProcessingActivityRegistryEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_ProcessingActivityRegistryEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ProcessingActivityRegistryEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ProcessingActivityRegistryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistryConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistryConnection_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.marshalNPageInfo2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProcessingActivityRegistryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistryConnection",
|
|
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) _ProcessingActivityRegistryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistryEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistryEdge_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_ProcessingActivityRegistryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistryEdge",
|
|
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) _ProcessingActivityRegistryEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityRegistryEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_ProcessingActivityRegistryEdge_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.ProcessingActivityRegistry)
|
|
fc.Result = res
|
|
return ec.marshalNProcessingActivityRegistry2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistry(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProcessingActivityRegistryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProcessingActivityRegistryEdge",
|
|
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_ProcessingActivityRegistry_id(ctx, field)
|
|
case "snapshotId":
|
|
return ec.fieldContext_ProcessingActivityRegistry_snapshotId(ctx, field)
|
|
case "sourceId":
|
|
return ec.fieldContext_ProcessingActivityRegistry_sourceId(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_ProcessingActivityRegistry_organization(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_ProcessingActivityRegistry_name(ctx, field)
|
|
case "purpose":
|
|
return ec.fieldContext_ProcessingActivityRegistry_purpose(ctx, field)
|
|
case "dataSubjectCategory":
|
|
return ec.fieldContext_ProcessingActivityRegistry_dataSubjectCategory(ctx, field)
|
|
case "personalDataCategory":
|
|
return ec.fieldContext_ProcessingActivityRegistry_personalDataCategory(ctx, field)
|
|
case "specialOrCriminalData":
|
|
return ec.fieldContext_ProcessingActivityRegistry_specialOrCriminalData(ctx, field)
|
|
case "consentEvidenceLink":
|
|
return ec.fieldContext_ProcessingActivityRegistry_consentEvidenceLink(ctx, field)
|
|
case "lawfulBasis":
|
|
return ec.fieldContext_ProcessingActivityRegistry_lawfulBasis(ctx, field)
|
|
case "recipients":
|
|
return ec.fieldContext_ProcessingActivityRegistry_recipients(ctx, field)
|
|
case "location":
|
|
return ec.fieldContext_ProcessingActivityRegistry_location(ctx, field)
|
|
case "internationalTransfers":
|
|
return ec.fieldContext_ProcessingActivityRegistry_internationalTransfers(ctx, field)
|
|
case "transferSafeguards":
|
|
return ec.fieldContext_ProcessingActivityRegistry_transferSafeguards(ctx, field)
|
|
case "retentionPeriod":
|
|
return ec.fieldContext_ProcessingActivityRegistry_retentionPeriod(ctx, field)
|
|
case "securityMeasures":
|
|
return ec.fieldContext_ProcessingActivityRegistry_securityMeasures(ctx, field)
|
|
case "dataProtectionImpactAssessment":
|
|
return ec.fieldContext_ProcessingActivityRegistry_dataProtectionImpactAssessment(ctx, field)
|
|
case "transferImpactAssessment":
|
|
return ec.fieldContext_ProcessingActivityRegistry_transferImpactAssessment(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_ProcessingActivityRegistry_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_ProcessingActivityRegistry_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ProcessingActivityRegistry", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PublishDocumentVersionPayload_documentVersion(ctx context.Context, field graphql.CollectedField, obj *types.PublishDocumentVersionPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PublishDocumentVersionPayload_documentVersion(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DocumentVersion, 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.DocumentVersion)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersion2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersion(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PublishDocumentVersionPayload_documentVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PublishDocumentVersionPayload",
|
|
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_DocumentVersion_id(ctx, field)
|
|
case "document":
|
|
return ec.fieldContext_DocumentVersion_document(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_DocumentVersion_status(ctx, field)
|
|
case "version":
|
|
return ec.fieldContext_DocumentVersion_version(ctx, field)
|
|
case "content":
|
|
return ec.fieldContext_DocumentVersion_content(ctx, field)
|
|
case "changelog":
|
|
return ec.fieldContext_DocumentVersion_changelog(ctx, field)
|
|
case "title":
|
|
return ec.fieldContext_DocumentVersion_title(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_DocumentVersion_owner(ctx, field)
|
|
case "signatures":
|
|
return ec.fieldContext_DocumentVersion_signatures(ctx, field)
|
|
case "publishedBy":
|
|
return ec.fieldContext_DocumentVersion_publishedBy(ctx, field)
|
|
case "publishedAt":
|
|
return ec.fieldContext_DocumentVersion_publishedAt(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_DocumentVersion_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_DocumentVersion_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersion", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PublishDocumentVersionPayload_document(ctx context.Context, field graphql.CollectedField, obj *types.PublishDocumentVersionPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_PublishDocumentVersionPayload_document(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Document, 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.Document)
|
|
fc.Result = res
|
|
return ec.marshalNDocument2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PublishDocumentVersionPayload_document(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PublishDocumentVersionPayload",
|
|
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_Document_id(ctx, field)
|
|
case "title":
|
|
return ec.fieldContext_Document_title(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Document_description(ctx, field)
|
|
case "documentType":
|
|
return ec.fieldContext_Document_documentType(ctx, field)
|
|
case "currentPublishedVersion":
|
|
return ec.fieldContext_Document_currentPublishedVersion(ctx, field)
|
|
case "showOnTrustCenter":
|
|
return ec.fieldContext_Document_showOnTrustCenter(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Document_owner(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Document_organization(ctx, field)
|
|
case "versions":
|
|
return ec.fieldContext_Document_versions(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Document_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Document_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Document_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Document", 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) _Report_id(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Report_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_Report_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Report",
|
|
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) _Report_objectKey(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Report_objectKey(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ObjectKey, 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_Report_objectKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Report",
|
|
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) _Report_mimeType(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Report_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_Report_mimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Report",
|
|
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) _Report_filename(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Report_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_Report_filename(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Report",
|
|
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) _Report_size(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Report_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_Report_size(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Report",
|
|
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) _Report_downloadUrl(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Report_downloadUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.Report().DownloadURL(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_Report_downloadUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Report",
|
|
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) _Report_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Report_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_Report_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Report",
|
|
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) _Report_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Report_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_Report_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Report",
|
|
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) _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) _RequestSignaturePayload_documentVersionSignatureEdge(ctx context.Context, field graphql.CollectedField, obj *types.RequestSignaturePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_RequestSignaturePayload_documentVersionSignatureEdge(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DocumentVersionSignatureEdge, 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.DocumentVersionSignatureEdge)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersionSignatureEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureEdge(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RequestSignaturePayload_documentVersionSignatureEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RequestSignaturePayload",
|
|
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_DocumentVersionSignatureEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_DocumentVersionSignatureEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersionSignatureEdge", 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_inherentRiskScore(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_inherentRiskScore(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.InherentRiskScore, 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_inherentRiskScore(_ 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_residualRiskScore(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_residualRiskScore(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ResidualRiskScore, 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_residualRiskScore(_ 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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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_organization(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_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 ec.resolvers.Risk().Organization(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.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_Risk_organization(_ 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_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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _Risk_measures(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_measures(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Measures(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.MeasureOrderBy), fc.Args["filter"].(*types.MeasureFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.MeasureConnection)
|
|
fc.Result = res
|
|
return ec.marshalNMeasureConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_measures(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 "totalCount":
|
|
return ec.fieldContext_MeasureConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_MeasureConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_MeasureConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type MeasureConnection", 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_measures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Risk_documents(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Risk_documents(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Documents(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DocumentOrderBy), fc.Args["filter"].(*types.DocumentFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.DocumentConnection)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Risk_documents(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 "totalCount":
|
|
return ec.fieldContext_DocumentConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_DocumentConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_DocumentConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentConnection", 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_documents_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), fc.Args["filter"].(*types.ControlFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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 "totalCount":
|
|
return ec.fieldContext_ControlConnection_totalCount(ctx, field)
|
|
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_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.RiskConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_RiskConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.RiskConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RiskConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RiskConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _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.marshalNPageInfo2githubᚗ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 "inherentRiskScore":
|
|
return ec.fieldContext_Risk_inherentRiskScore(ctx, field)
|
|
case "residualLikelihood":
|
|
return ec.fieldContext_Risk_residualLikelihood(ctx, field)
|
|
case "residualImpact":
|
|
return ec.fieldContext_Risk_residualImpact(ctx, field)
|
|
case "residualRiskScore":
|
|
return ec.fieldContext_Risk_residualRiskScore(ctx, field)
|
|
case "note":
|
|
return ec.fieldContext_Risk_note(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Risk_owner(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Risk_organization(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Risk_measures(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Risk_documents(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) _SendSigningNotificationsPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.SendSigningNotificationsPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_SendSigningNotificationsPayload_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_SendSigningNotificationsPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SendSigningNotificationsPayload",
|
|
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) _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) _Snapshot_id(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Snapshot_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_Snapshot_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Snapshot",
|
|
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) _Snapshot_organization(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Snapshot_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 ec.resolvers.Snapshot().Organization(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.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_Snapshot_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Snapshot",
|
|
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_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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _Snapshot_name(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Snapshot_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_Snapshot_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Snapshot",
|
|
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) _Snapshot_description(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Snapshot_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_Snapshot_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Snapshot",
|
|
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) _Snapshot_type(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Snapshot_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.SnapshotsType)
|
|
fc.Result = res
|
|
return ec.marshalNSnapshotsType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotsType(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Snapshot_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Snapshot",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type SnapshotsType does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Snapshot_controls(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Snapshot_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.Snapshot().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), fc.Args["filter"].(*types.ControlFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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_Snapshot_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Snapshot",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "totalCount":
|
|
return ec.fieldContext_ControlConnection_totalCount(ctx, field)
|
|
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_Snapshot_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Snapshot_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Snapshot_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_Snapshot_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Snapshot",
|
|
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) _SnapshotConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.SnapshotConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_SnapshotConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.SnapshotConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SnapshotConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SnapshotConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _SnapshotConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.SnapshotConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_SnapshotConnection_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.SnapshotEdge)
|
|
fc.Result = res
|
|
return ec.marshalNSnapshotEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SnapshotConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SnapshotConnection",
|
|
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_SnapshotEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_SnapshotEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SnapshotEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SnapshotConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.SnapshotConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_SnapshotConnection_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.marshalNPageInfo2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SnapshotConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SnapshotConnection",
|
|
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) _SnapshotEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.SnapshotEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_SnapshotEdge_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_SnapshotEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SnapshotEdge",
|
|
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) _SnapshotEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.SnapshotEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_SnapshotEdge_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.Snapshot)
|
|
fc.Result = res
|
|
return ec.marshalNSnapshot2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshot(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SnapshotEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SnapshotEdge",
|
|
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_Snapshot_id(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Snapshot_organization(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Snapshot_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Snapshot_description(ctx, field)
|
|
case "type":
|
|
return ec.fieldContext_Snapshot_type(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Snapshot_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Snapshot_createdAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Snapshot", field.Name)
|
|
},
|
|
}
|
|
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_deadline(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Task_deadline(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Deadline, 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_Task_deadline(_ 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_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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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_organization(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Task_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 ec.resolvers.Task().Organization(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.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_Task_organization(_ 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_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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _Task_measure(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Task_measure(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Measure(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.Measure)
|
|
fc.Result = res
|
|
return ec.marshalOMeasure2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Task_measure(_ 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_Measure_id(ctx, field)
|
|
case "category":
|
|
return ec.fieldContext_Measure_category(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Measure_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Measure_description(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Measure_state(ctx, field)
|
|
case "evidences":
|
|
return ec.fieldContext_Measure_evidences(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Measure_tasks(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Measure_risks(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Measure_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Measure_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Measure_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Measure", 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 "totalCount":
|
|
return ec.fieldContext_EvidenceConnection_totalCount(ctx, field)
|
|
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_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.TaskConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TaskConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.TaskConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_TaskConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TaskConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _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.marshalNPageInfo2githubᚗ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 "deadline":
|
|
return ec.fieldContext_Task_deadline(ctx, field)
|
|
case "assignedTo":
|
|
return ec.fieldContext_Task_assignedTo(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Task_organization(ctx, field)
|
|
case "measure":
|
|
return ec.fieldContext_Task_measure(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) _TrustCenter_id(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenter_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_TrustCenter_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenter",
|
|
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) _TrustCenter_active(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenter_active(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Active, 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_TrustCenter_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenter",
|
|
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) _TrustCenter_slug(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenter_slug(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Slug, 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_TrustCenter_slug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenter",
|
|
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) _TrustCenter_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenter_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_TrustCenter_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenter",
|
|
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) _TrustCenter_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenter_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_TrustCenter_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenter",
|
|
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) _TrustCenter_organization(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenter_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 ec.resolvers.TrustCenter().Organization(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.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_TrustCenter_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenter",
|
|
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_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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _TrustCenter_accesses(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenter_accesses(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.TrustCenter().Accesses(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.OrderBy[coredata.TrustCenterAccessOrderField]))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.TrustCenterAccessConnection)
|
|
fc.Result = res
|
|
return ec.marshalNTrustCenterAccessConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_TrustCenter_accesses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenter",
|
|
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_TrustCenterAccessConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_TrustCenterAccessConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type TrustCenterAccessConnection", 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_TrustCenter_accesses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _TrustCenterAccess_id(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterAccess_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_TrustCenterAccess_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterAccess",
|
|
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) _TrustCenterAccess_email(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterAccess_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_TrustCenterAccess_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterAccess",
|
|
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) _TrustCenterAccess_name(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterAccess_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_TrustCenterAccess_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterAccess",
|
|
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) _TrustCenterAccess_active(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterAccess_active(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Active, 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_TrustCenterAccess_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterAccess",
|
|
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) _TrustCenterAccess_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterAccess_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_TrustCenterAccess_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterAccess",
|
|
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) _TrustCenterAccess_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterAccess_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_TrustCenterAccess_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterAccess",
|
|
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) _TrustCenterAccessConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccessConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterAccessConnection_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.TrustCenterAccessEdge)
|
|
fc.Result = res
|
|
return ec.marshalNTrustCenterAccessEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_TrustCenterAccessConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterAccessConnection",
|
|
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_TrustCenterAccessEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_TrustCenterAccessEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type TrustCenterAccessEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _TrustCenterAccessConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccessConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterAccessConnection_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_TrustCenterAccessConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterAccessConnection",
|
|
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) _TrustCenterAccessEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccessEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterAccessEdge_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_TrustCenterAccessEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterAccessEdge",
|
|
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) _TrustCenterAccessEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccessEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterAccessEdge_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.TrustCenterAccess)
|
|
fc.Result = res
|
|
return ec.marshalNTrustCenterAccess2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccess(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_TrustCenterAccessEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterAccessEdge",
|
|
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_TrustCenterAccess_id(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_TrustCenterAccess_email(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_TrustCenterAccess_name(ctx, field)
|
|
case "active":
|
|
return ec.fieldContext_TrustCenterAccess_active(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_TrustCenterAccess_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_TrustCenterAccess_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type TrustCenterAccess", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _TrustCenterConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterConnection_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.TrustCenterEdge)
|
|
fc.Result = res
|
|
return ec.marshalNTrustCenterEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_TrustCenterConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterConnection",
|
|
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_TrustCenterEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_TrustCenterEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type TrustCenterEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _TrustCenterConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterConnection_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_TrustCenterConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterConnection",
|
|
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) _TrustCenterEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterEdge_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_TrustCenterEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterEdge",
|
|
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) _TrustCenterEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_TrustCenterEdge_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.TrustCenter)
|
|
fc.Result = res
|
|
return ec.marshalNTrustCenter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenter(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_TrustCenterEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "TrustCenterEdge",
|
|
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_TrustCenter_id(ctx, field)
|
|
case "active":
|
|
return ec.fieldContext_TrustCenter_active(ctx, field)
|
|
case "slug":
|
|
return ec.fieldContext_TrustCenter_slug(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_TrustCenter_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_TrustCenter_updatedAt(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_TrustCenter_organization(ctx, field)
|
|
case "accesses":
|
|
return ec.fieldContext_TrustCenter_accesses(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type TrustCenter", 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 "deadline":
|
|
return ec.fieldContext_Task_deadline(ctx, field)
|
|
case "assignedTo":
|
|
return ec.fieldContext_Task_assignedTo(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Task_organization(ctx, field)
|
|
case "measure":
|
|
return ec.fieldContext_Task_measure(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) _UpdateAssetPayload_asset(ctx context.Context, field graphql.CollectedField, obj *types.UpdateAssetPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateAssetPayload_asset(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Asset, 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.Asset)
|
|
fc.Result = res
|
|
return ec.marshalNAsset2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAsset(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateAssetPayload_asset(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateAssetPayload",
|
|
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_Asset_id(ctx, field)
|
|
case "snapshotId":
|
|
return ec.fieldContext_Asset_snapshotId(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Asset_name(ctx, field)
|
|
case "amount":
|
|
return ec.fieldContext_Asset_amount(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Asset_owner(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Asset_vendors(ctx, field)
|
|
case "criticity":
|
|
return ec.fieldContext_Asset_criticity(ctx, field)
|
|
case "assetType":
|
|
return ec.fieldContext_Asset_assetType(ctx, field)
|
|
case "dataTypesStored":
|
|
return ec.fieldContext_Asset_dataTypesStored(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Asset_organization(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Asset_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Asset_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Asset", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateAuditPayload_audit(ctx context.Context, field graphql.CollectedField, obj *types.UpdateAuditPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateAuditPayload_audit(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Audit, 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.Audit)
|
|
fc.Result = res
|
|
return ec.marshalNAudit2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateAuditPayload_audit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateAuditPayload",
|
|
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_Audit_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Audit_name(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Audit_organization(ctx, field)
|
|
case "framework":
|
|
return ec.fieldContext_Audit_framework(ctx, field)
|
|
case "validFrom":
|
|
return ec.fieldContext_Audit_validFrom(ctx, field)
|
|
case "validUntil":
|
|
return ec.fieldContext_Audit_validUntil(ctx, field)
|
|
case "report":
|
|
return ec.fieldContext_Audit_report(ctx, field)
|
|
case "reportUrl":
|
|
return ec.fieldContext_Audit_reportUrl(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Audit_state(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Audit_controls(ctx, field)
|
|
case "showOnTrustCenter":
|
|
return ec.fieldContext_Audit_showOnTrustCenter(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Audit_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Audit_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Audit", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateComplianceRegistryPayload_complianceRegistry(ctx context.Context, field graphql.CollectedField, obj *types.UpdateComplianceRegistryPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateComplianceRegistryPayload_complianceRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ComplianceRegistry, 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.ComplianceRegistry)
|
|
fc.Result = res
|
|
return ec.marshalNComplianceRegistry2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistry(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateComplianceRegistryPayload_complianceRegistry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateComplianceRegistryPayload",
|
|
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_ComplianceRegistry_id(ctx, field)
|
|
case "snapshotId":
|
|
return ec.fieldContext_ComplianceRegistry_snapshotId(ctx, field)
|
|
case "sourceId":
|
|
return ec.fieldContext_ComplianceRegistry_sourceId(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_ComplianceRegistry_organization(ctx, field)
|
|
case "referenceId":
|
|
return ec.fieldContext_ComplianceRegistry_referenceId(ctx, field)
|
|
case "area":
|
|
return ec.fieldContext_ComplianceRegistry_area(ctx, field)
|
|
case "source":
|
|
return ec.fieldContext_ComplianceRegistry_source(ctx, field)
|
|
case "requirement":
|
|
return ec.fieldContext_ComplianceRegistry_requirement(ctx, field)
|
|
case "actionsToBeImplemented":
|
|
return ec.fieldContext_ComplianceRegistry_actionsToBeImplemented(ctx, field)
|
|
case "regulator":
|
|
return ec.fieldContext_ComplianceRegistry_regulator(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_ComplianceRegistry_owner(ctx, field)
|
|
case "lastReviewDate":
|
|
return ec.fieldContext_ComplianceRegistry_lastReviewDate(ctx, field)
|
|
case "dueDate":
|
|
return ec.fieldContext_ComplianceRegistry_dueDate(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_ComplianceRegistry_status(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_ComplianceRegistry_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_ComplianceRegistry_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ComplianceRegistry", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateContinualImprovementRegistryPayload_continualImprovementRegistry(ctx context.Context, field graphql.CollectedField, obj *types.UpdateContinualImprovementRegistryPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateContinualImprovementRegistryPayload_continualImprovementRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ContinualImprovementRegistry, 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.ContinualImprovementRegistry)
|
|
fc.Result = res
|
|
return ec.marshalNContinualImprovementRegistry2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistry(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateContinualImprovementRegistryPayload_continualImprovementRegistry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateContinualImprovementRegistryPayload",
|
|
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_ContinualImprovementRegistry_id(ctx, field)
|
|
case "snapshotId":
|
|
return ec.fieldContext_ContinualImprovementRegistry_snapshotId(ctx, field)
|
|
case "sourceId":
|
|
return ec.fieldContext_ContinualImprovementRegistry_sourceId(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_ContinualImprovementRegistry_organization(ctx, field)
|
|
case "referenceId":
|
|
return ec.fieldContext_ContinualImprovementRegistry_referenceId(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_ContinualImprovementRegistry_description(ctx, field)
|
|
case "source":
|
|
return ec.fieldContext_ContinualImprovementRegistry_source(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_ContinualImprovementRegistry_owner(ctx, field)
|
|
case "targetDate":
|
|
return ec.fieldContext_ContinualImprovementRegistry_targetDate(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_ContinualImprovementRegistry_status(ctx, field)
|
|
case "priority":
|
|
return ec.fieldContext_ContinualImprovementRegistry_priority(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_ContinualImprovementRegistry_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_ContinualImprovementRegistry_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ContinualImprovementRegistry", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateControlPayload_control(ctx context.Context, field graphql.CollectedField, obj *types.UpdateControlPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateControlPayload_control(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Control, 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_UpdateControlPayload_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateControlPayload",
|
|
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 "sectionTitle":
|
|
return ec.fieldContext_Control_sectionTitle(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Control_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Control_description(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_Control_status(ctx, field)
|
|
case "exclusionJustification":
|
|
return ec.fieldContext_Control_exclusionJustification(ctx, field)
|
|
case "framework":
|
|
return ec.fieldContext_Control_framework(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Control_measures(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Control_documents(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Control_audits(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Control_snapshots(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) _UpdateDatumPayload_datum(ctx context.Context, field graphql.CollectedField, obj *types.UpdateDatumPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateDatumPayload_datum(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Datum, 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.Datum)
|
|
fc.Result = res
|
|
return ec.marshalNDatum2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatum(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateDatumPayload_datum(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateDatumPayload",
|
|
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_Datum_id(ctx, field)
|
|
case "snapshotId":
|
|
return ec.fieldContext_Datum_snapshotId(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Datum_name(ctx, field)
|
|
case "dataClassification":
|
|
return ec.fieldContext_Datum_dataClassification(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Datum_owner(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Datum_vendors(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Datum_organization(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Datum_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Datum_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Datum", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateDocumentPayload_document(ctx context.Context, field graphql.CollectedField, obj *types.UpdateDocumentPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateDocumentPayload_document(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Document, 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.Document)
|
|
fc.Result = res
|
|
return ec.marshalNDocument2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateDocumentPayload_document(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateDocumentPayload",
|
|
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_Document_id(ctx, field)
|
|
case "title":
|
|
return ec.fieldContext_Document_title(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Document_description(ctx, field)
|
|
case "documentType":
|
|
return ec.fieldContext_Document_documentType(ctx, field)
|
|
case "currentPublishedVersion":
|
|
return ec.fieldContext_Document_currentPublishedVersion(ctx, field)
|
|
case "showOnTrustCenter":
|
|
return ec.fieldContext_Document_showOnTrustCenter(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Document_owner(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Document_organization(ctx, field)
|
|
case "versions":
|
|
return ec.fieldContext_Document_versions(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Document_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Document_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Document_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Document", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateDocumentVersionPayload_documentVersion(ctx context.Context, field graphql.CollectedField, obj *types.UpdateDocumentVersionPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateDocumentVersionPayload_documentVersion(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.DocumentVersion, 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.DocumentVersion)
|
|
fc.Result = res
|
|
return ec.marshalNDocumentVersion2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersion(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateDocumentVersionPayload_documentVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateDocumentVersionPayload",
|
|
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_DocumentVersion_id(ctx, field)
|
|
case "document":
|
|
return ec.fieldContext_DocumentVersion_document(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_DocumentVersion_status(ctx, field)
|
|
case "version":
|
|
return ec.fieldContext_DocumentVersion_version(ctx, field)
|
|
case "content":
|
|
return ec.fieldContext_DocumentVersion_content(ctx, field)
|
|
case "changelog":
|
|
return ec.fieldContext_DocumentVersion_changelog(ctx, field)
|
|
case "title":
|
|
return ec.fieldContext_DocumentVersion_title(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_DocumentVersion_owner(ctx, field)
|
|
case "signatures":
|
|
return ec.fieldContext_DocumentVersion_signatures(ctx, field)
|
|
case "publishedBy":
|
|
return ec.fieldContext_DocumentVersion_publishedBy(ctx, field)
|
|
case "publishedAt":
|
|
return ec.fieldContext_DocumentVersion_publishedAt(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_DocumentVersion_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_DocumentVersion_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DocumentVersion", 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 "organization":
|
|
return ec.fieldContext_Framework_organization(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) _UpdateMeasurePayload_measure(ctx context.Context, field graphql.CollectedField, obj *types.UpdateMeasurePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateMeasurePayload_measure(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Measure, 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.Measure)
|
|
fc.Result = res
|
|
return ec.marshalNMeasure2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateMeasurePayload_measure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateMeasurePayload",
|
|
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_Measure_id(ctx, field)
|
|
case "category":
|
|
return ec.fieldContext_Measure_category(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Measure_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Measure_description(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Measure_state(ctx, field)
|
|
case "evidences":
|
|
return ec.fieldContext_Measure_evidences(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Measure_tasks(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Measure_risks(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Measure_controls(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Measure_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Measure_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Measure", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateNonconformityRegistryPayload_nonconformityRegistry(ctx context.Context, field graphql.CollectedField, obj *types.UpdateNonconformityRegistryPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateNonconformityRegistryPayload_nonconformityRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.NonconformityRegistry, 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.NonconformityRegistry)
|
|
fc.Result = res
|
|
return ec.marshalNNonconformityRegistry2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistry(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateNonconformityRegistryPayload_nonconformityRegistry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateNonconformityRegistryPayload",
|
|
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_NonconformityRegistry_id(ctx, field)
|
|
case "snapshotId":
|
|
return ec.fieldContext_NonconformityRegistry_snapshotId(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_NonconformityRegistry_organization(ctx, field)
|
|
case "referenceId":
|
|
return ec.fieldContext_NonconformityRegistry_referenceId(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_NonconformityRegistry_description(ctx, field)
|
|
case "audit":
|
|
return ec.fieldContext_NonconformityRegistry_audit(ctx, field)
|
|
case "dateIdentified":
|
|
return ec.fieldContext_NonconformityRegistry_dateIdentified(ctx, field)
|
|
case "rootCause":
|
|
return ec.fieldContext_NonconformityRegistry_rootCause(ctx, field)
|
|
case "correctiveAction":
|
|
return ec.fieldContext_NonconformityRegistry_correctiveAction(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_NonconformityRegistry_owner(ctx, field)
|
|
case "dueDate":
|
|
return ec.fieldContext_NonconformityRegistry_dueDate(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_NonconformityRegistry_status(ctx, field)
|
|
case "effectivenessCheck":
|
|
return ec.fieldContext_NonconformityRegistry_effectivenessCheck(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_NonconformityRegistry_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_NonconformityRegistry_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type NonconformityRegistry", 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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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) _UpdateProcessingActivityRegistryPayload_processingActivityRegistry(ctx context.Context, field graphql.CollectedField, obj *types.UpdateProcessingActivityRegistryPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateProcessingActivityRegistryPayload_processingActivityRegistry(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ProcessingActivityRegistry, 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.ProcessingActivityRegistry)
|
|
fc.Result = res
|
|
return ec.marshalNProcessingActivityRegistry2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistry(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateProcessingActivityRegistryPayload_processingActivityRegistry(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateProcessingActivityRegistryPayload",
|
|
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_ProcessingActivityRegistry_id(ctx, field)
|
|
case "snapshotId":
|
|
return ec.fieldContext_ProcessingActivityRegistry_snapshotId(ctx, field)
|
|
case "sourceId":
|
|
return ec.fieldContext_ProcessingActivityRegistry_sourceId(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_ProcessingActivityRegistry_organization(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_ProcessingActivityRegistry_name(ctx, field)
|
|
case "purpose":
|
|
return ec.fieldContext_ProcessingActivityRegistry_purpose(ctx, field)
|
|
case "dataSubjectCategory":
|
|
return ec.fieldContext_ProcessingActivityRegistry_dataSubjectCategory(ctx, field)
|
|
case "personalDataCategory":
|
|
return ec.fieldContext_ProcessingActivityRegistry_personalDataCategory(ctx, field)
|
|
case "specialOrCriminalData":
|
|
return ec.fieldContext_ProcessingActivityRegistry_specialOrCriminalData(ctx, field)
|
|
case "consentEvidenceLink":
|
|
return ec.fieldContext_ProcessingActivityRegistry_consentEvidenceLink(ctx, field)
|
|
case "lawfulBasis":
|
|
return ec.fieldContext_ProcessingActivityRegistry_lawfulBasis(ctx, field)
|
|
case "recipients":
|
|
return ec.fieldContext_ProcessingActivityRegistry_recipients(ctx, field)
|
|
case "location":
|
|
return ec.fieldContext_ProcessingActivityRegistry_location(ctx, field)
|
|
case "internationalTransfers":
|
|
return ec.fieldContext_ProcessingActivityRegistry_internationalTransfers(ctx, field)
|
|
case "transferSafeguards":
|
|
return ec.fieldContext_ProcessingActivityRegistry_transferSafeguards(ctx, field)
|
|
case "retentionPeriod":
|
|
return ec.fieldContext_ProcessingActivityRegistry_retentionPeriod(ctx, field)
|
|
case "securityMeasures":
|
|
return ec.fieldContext_ProcessingActivityRegistry_securityMeasures(ctx, field)
|
|
case "dataProtectionImpactAssessment":
|
|
return ec.fieldContext_ProcessingActivityRegistry_dataProtectionImpactAssessment(ctx, field)
|
|
case "transferImpactAssessment":
|
|
return ec.fieldContext_ProcessingActivityRegistry_transferImpactAssessment(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_ProcessingActivityRegistry_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_ProcessingActivityRegistry_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ProcessingActivityRegistry", 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 "inherentRiskScore":
|
|
return ec.fieldContext_Risk_inherentRiskScore(ctx, field)
|
|
case "residualLikelihood":
|
|
return ec.fieldContext_Risk_residualLikelihood(ctx, field)
|
|
case "residualImpact":
|
|
return ec.fieldContext_Risk_residualImpact(ctx, field)
|
|
case "residualRiskScore":
|
|
return ec.fieldContext_Risk_residualRiskScore(ctx, field)
|
|
case "note":
|
|
return ec.fieldContext_Risk_note(ctx, field)
|
|
case "owner":
|
|
return ec.fieldContext_Risk_owner(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Risk_organization(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Risk_measures(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Risk_documents(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 "deadline":
|
|
return ec.fieldContext_Task_deadline(ctx, field)
|
|
case "assignedTo":
|
|
return ec.fieldContext_Task_assignedTo(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Task_organization(ctx, field)
|
|
case "measure":
|
|
return ec.fieldContext_Task_measure(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) _UpdateTrustCenterAccessPayload_trustCenterAccess(ctx context.Context, field graphql.CollectedField, obj *types.UpdateTrustCenterAccessPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateTrustCenterAccessPayload_trustCenterAccess(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.TrustCenterAccess, 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.TrustCenterAccess)
|
|
fc.Result = res
|
|
return ec.marshalNTrustCenterAccess2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccess(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateTrustCenterAccessPayload_trustCenterAccess(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateTrustCenterAccessPayload",
|
|
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_TrustCenterAccess_id(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_TrustCenterAccess_email(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_TrustCenterAccess_name(ctx, field)
|
|
case "active":
|
|
return ec.fieldContext_TrustCenterAccess_active(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_TrustCenterAccess_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_TrustCenterAccess_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type TrustCenterAccess", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateTrustCenterPayload_trustCenter(ctx context.Context, field graphql.CollectedField, obj *types.UpdateTrustCenterPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateTrustCenterPayload_trustCenter(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.TrustCenter, 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.TrustCenter)
|
|
fc.Result = res
|
|
return ec.marshalNTrustCenter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenter(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateTrustCenterPayload_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateTrustCenterPayload",
|
|
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_TrustCenter_id(ctx, field)
|
|
case "active":
|
|
return ec.fieldContext_TrustCenter_active(ctx, field)
|
|
case "slug":
|
|
return ec.fieldContext_TrustCenter_slug(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_TrustCenter_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_TrustCenter_updatedAt(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_TrustCenter_organization(ctx, field)
|
|
case "accesses":
|
|
return ec.fieldContext_TrustCenter_accesses(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type TrustCenter", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(ctx context.Context, field graphql.CollectedField, obj *types.UpdateVendorBusinessAssociateAgreementPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.VendorBusinessAssociateAgreement, 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.VendorBusinessAssociateAgreement)
|
|
fc.Result = res
|
|
return ec.marshalNVendorBusinessAssociateAgreement2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorBusinessAssociateAgreement(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateVendorBusinessAssociateAgreementPayload",
|
|
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_VendorBusinessAssociateAgreement_id(ctx, field)
|
|
case "vendor":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_vendor(ctx, field)
|
|
case "validFrom":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_validFrom(ctx, field)
|
|
case "validUntil":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_validUntil(ctx, field)
|
|
case "fileName":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_fileName(ctx, field)
|
|
case "fileUrl":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_fileUrl(ctx, field)
|
|
case "fileSize":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_fileSize(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorBusinessAssociateAgreement", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateVendorContactPayload_vendorContact(ctx context.Context, field graphql.CollectedField, obj *types.UpdateVendorContactPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateVendorContactPayload_vendorContact(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.VendorContact, 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.VendorContact)
|
|
fc.Result = res
|
|
return ec.marshalNVendorContact2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContact(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateVendorContactPayload_vendorContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateVendorContactPayload",
|
|
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_VendorContact_id(ctx, field)
|
|
case "vendor":
|
|
return ec.fieldContext_VendorContact_vendor(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_VendorContact_fullName(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_VendorContact_email(ctx, field)
|
|
case "phone":
|
|
return ec.fieldContext_VendorContact_phone(ctx, field)
|
|
case "role":
|
|
return ec.fieldContext_VendorContact_role(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_VendorContact_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_VendorContact_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorContact", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(ctx context.Context, field graphql.CollectedField, obj *types.UpdateVendorDataPrivacyAgreementPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.VendorDataPrivacyAgreement, 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.VendorDataPrivacyAgreement)
|
|
fc.Result = res
|
|
return ec.marshalNVendorDataPrivacyAgreement2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorDataPrivacyAgreement(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateVendorDataPrivacyAgreementPayload",
|
|
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_VendorDataPrivacyAgreement_id(ctx, field)
|
|
case "vendor":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_vendor(ctx, field)
|
|
case "validFrom":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_validFrom(ctx, field)
|
|
case "validUntil":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_validUntil(ctx, field)
|
|
case "fileName":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_fileName(ctx, field)
|
|
case "fileUrl":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_fileUrl(ctx, field)
|
|
case "fileSize":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_fileSize(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorDataPrivacyAgreement", 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 "category":
|
|
return ec.fieldContext_Vendor_category(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Vendor_description(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Vendor_organization(ctx, field)
|
|
case "complianceReports":
|
|
return ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
case "businessAssociateAgreement":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field)
|
|
case "dataPrivacyAgreement":
|
|
return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field)
|
|
case "contacts":
|
|
return ec.fieldContext_Vendor_contacts(ctx, field)
|
|
case "services":
|
|
return ec.fieldContext_Vendor_services(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 "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 "businessAssociateAgreementUrl":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field)
|
|
case "subprocessorsListUrl":
|
|
return ec.fieldContext_Vendor_subprocessorsListUrl(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 "showOnTrustCenter":
|
|
return ec.fieldContext_Vendor_showOnTrustCenter(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) _UpdateVendorServicePayload_vendorService(ctx context.Context, field graphql.CollectedField, obj *types.UpdateVendorServicePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UpdateVendorServicePayload_vendorService(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.VendorService, 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.VendorService)
|
|
fc.Result = res
|
|
return ec.marshalNVendorService2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorService(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateVendorServicePayload_vendorService(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateVendorServicePayload",
|
|
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_VendorService_id(ctx, field)
|
|
case "vendor":
|
|
return ec.fieldContext_VendorService_vendor(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_VendorService_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_VendorService_description(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_VendorService_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_VendorService_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorService", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UploadAuditReportPayload_audit(ctx context.Context, field graphql.CollectedField, obj *types.UploadAuditReportPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UploadAuditReportPayload_audit(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Audit, 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.Audit)
|
|
fc.Result = res
|
|
return ec.marshalNAudit2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UploadAuditReportPayload_audit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UploadAuditReportPayload",
|
|
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_Audit_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Audit_name(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Audit_organization(ctx, field)
|
|
case "framework":
|
|
return ec.fieldContext_Audit_framework(ctx, field)
|
|
case "validFrom":
|
|
return ec.fieldContext_Audit_validFrom(ctx, field)
|
|
case "validUntil":
|
|
return ec.fieldContext_Audit_validUntil(ctx, field)
|
|
case "report":
|
|
return ec.fieldContext_Audit_report(ctx, field)
|
|
case "reportUrl":
|
|
return ec.fieldContext_Audit_reportUrl(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Audit_state(ctx, field)
|
|
case "controls":
|
|
return ec.fieldContext_Audit_controls(ctx, field)
|
|
case "showOnTrustCenter":
|
|
return ec.fieldContext_Audit_showOnTrustCenter(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Audit_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Audit_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Audit", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UploadMeasureEvidencePayload_evidenceEdge(ctx context.Context, field graphql.CollectedField, obj *types.UploadMeasureEvidencePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UploadMeasureEvidencePayload_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_UploadMeasureEvidencePayload_evidenceEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UploadMeasureEvidencePayload",
|
|
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) _UploadTaskEvidencePayload_evidenceEdge(ctx context.Context, field graphql.CollectedField, obj *types.UploadTaskEvidencePayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UploadTaskEvidencePayload_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_UploadTaskEvidencePayload_evidenceEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UploadTaskEvidencePayload",
|
|
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) _UploadVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(ctx context.Context, field graphql.CollectedField, obj *types.UploadVendorBusinessAssociateAgreementPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UploadVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.VendorBusinessAssociateAgreement, 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.VendorBusinessAssociateAgreement)
|
|
fc.Result = res
|
|
return ec.marshalNVendorBusinessAssociateAgreement2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorBusinessAssociateAgreement(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UploadVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UploadVendorBusinessAssociateAgreementPayload",
|
|
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_VendorBusinessAssociateAgreement_id(ctx, field)
|
|
case "vendor":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_vendor(ctx, field)
|
|
case "validFrom":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_validFrom(ctx, field)
|
|
case "validUntil":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_validUntil(ctx, field)
|
|
case "fileName":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_fileName(ctx, field)
|
|
case "fileUrl":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_fileUrl(ctx, field)
|
|
case "fileSize":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_fileSize(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorBusinessAssociateAgreement", 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) _UploadVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(ctx context.Context, field graphql.CollectedField, obj *types.UploadVendorDataPrivacyAgreementPayload) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_UploadVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.VendorDataPrivacyAgreement, 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.VendorDataPrivacyAgreement)
|
|
fc.Result = res
|
|
return ec.marshalNVendorDataPrivacyAgreement2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorDataPrivacyAgreement(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UploadVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UploadVendorDataPrivacyAgreementPayload",
|
|
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_VendorDataPrivacyAgreement_id(ctx, field)
|
|
case "vendor":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_vendor(ctx, field)
|
|
case "validFrom":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_validFrom(ctx, field)
|
|
case "validUntil":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_validUntil(ctx, field)
|
|
case "fileName":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_fileName(ctx, field)
|
|
case "fileUrl":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_fileUrl(ctx, field)
|
|
case "fileSize":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_fileSize(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorDataPrivacyAgreement", 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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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_category(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_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.(coredata.VendorCategory)
|
|
fc.Result = res
|
|
return ec.marshalNVendorCategory2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_category(_ 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 VendorCategory 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_organization(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_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 ec.resolvers.Vendor().Organization(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.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_Vendor_organization(_ 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_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 "controls":
|
|
return ec.fieldContext_Organization_controls(ctx, field)
|
|
case "vendors":
|
|
return ec.fieldContext_Organization_vendors(ctx, field)
|
|
case "peoples":
|
|
return ec.fieldContext_Organization_peoples(ctx, field)
|
|
case "documents":
|
|
return ec.fieldContext_Organization_documents(ctx, field)
|
|
case "measures":
|
|
return ec.fieldContext_Organization_measures(ctx, field)
|
|
case "risks":
|
|
return ec.fieldContext_Organization_risks(ctx, field)
|
|
case "tasks":
|
|
return ec.fieldContext_Organization_tasks(ctx, field)
|
|
case "assets":
|
|
return ec.fieldContext_Organization_assets(ctx, field)
|
|
case "data":
|
|
return ec.fieldContext_Organization_data(ctx, field)
|
|
case "audits":
|
|
return ec.fieldContext_Organization_audits(ctx, field)
|
|
case "nonconformityRegistries":
|
|
return ec.fieldContext_Organization_nonconformityRegistries(ctx, field)
|
|
case "complianceRegistries":
|
|
return ec.fieldContext_Organization_complianceRegistries(ctx, field)
|
|
case "continualImprovementRegistries":
|
|
return ec.fieldContext_Organization_continualImprovementRegistries(ctx, field)
|
|
case "processingActivityRegistries":
|
|
return ec.fieldContext_Organization_processingActivityRegistries(ctx, field)
|
|
case "snapshots":
|
|
return ec.fieldContext_Organization_snapshots(ctx, field)
|
|
case "trustCenter":
|
|
return ec.fieldContext_Organization_trustCenter(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) _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_businessAssociateAgreement(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().BusinessAssociateAgreement(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.VendorBusinessAssociateAgreement)
|
|
fc.Result = res
|
|
return ec.marshalOVendorBusinessAssociateAgreement2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorBusinessAssociateAgreement(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_businessAssociateAgreement(_ 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_VendorBusinessAssociateAgreement_id(ctx, field)
|
|
case "vendor":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_vendor(ctx, field)
|
|
case "validFrom":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_validFrom(ctx, field)
|
|
case "validUntil":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_validUntil(ctx, field)
|
|
case "fileName":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_fileName(ctx, field)
|
|
case "fileUrl":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_fileUrl(ctx, field)
|
|
case "fileSize":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_fileSize(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_VendorBusinessAssociateAgreement_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorBusinessAssociateAgreement", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_dataPrivacyAgreement(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().DataPrivacyAgreement(rctx, obj)
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, err)
|
|
return graphql.Null
|
|
}
|
|
if resTmp == nil {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*types.VendorDataPrivacyAgreement)
|
|
fc.Result = res
|
|
return ec.marshalOVendorDataPrivacyAgreement2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorDataPrivacyAgreement(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_dataPrivacyAgreement(_ 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_VendorDataPrivacyAgreement_id(ctx, field)
|
|
case "vendor":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_vendor(ctx, field)
|
|
case "validFrom":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_validFrom(ctx, field)
|
|
case "validUntil":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_validUntil(ctx, field)
|
|
case "fileName":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_fileName(ctx, field)
|
|
case "fileUrl":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_fileUrl(ctx, field)
|
|
case "fileSize":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_fileSize(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_VendorDataPrivacyAgreement_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorDataPrivacyAgreement", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_contacts(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_contacts(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Contacts(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.VendorContactOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.VendorContactConnection)
|
|
fc.Result = res
|
|
return ec.marshalNVendorContactConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_contacts(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_VendorContactConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_VendorContactConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorContactConnection", 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_contacts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Vendor_services(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_services(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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().Services(rctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.VendorServiceOrderBy))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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.VendorServiceConnection)
|
|
fc.Result = res
|
|
return ec.marshalNVendorServiceConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceConnection(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Vendor_services(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_VendorServiceConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_VendorServiceConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorServiceConnection", 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_services_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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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_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_businessAssociateAgreementUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.BusinessAssociateAgreementURL, 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_businessAssociateAgreementUrl(_ 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_subprocessorsListUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_subprocessorsListUrl(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.SubprocessorsListURL, 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_subprocessorsListUrl(_ 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_showOnTrustCenter(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_Vendor_showOnTrustCenter(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ShowOnTrustCenter, 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_Vendor_showOnTrustCenter(_ 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 Boolean 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) _VendorBusinessAssociateAgreement_id(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorBusinessAssociateAgreement_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_VendorBusinessAssociateAgreement_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorBusinessAssociateAgreement",
|
|
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) _VendorBusinessAssociateAgreement_vendor(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorBusinessAssociateAgreement_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.VendorBusinessAssociateAgreement().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_VendorBusinessAssociateAgreement_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorBusinessAssociateAgreement",
|
|
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 "category":
|
|
return ec.fieldContext_Vendor_category(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Vendor_description(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Vendor_organization(ctx, field)
|
|
case "complianceReports":
|
|
return ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
case "businessAssociateAgreement":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field)
|
|
case "dataPrivacyAgreement":
|
|
return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field)
|
|
case "contacts":
|
|
return ec.fieldContext_Vendor_contacts(ctx, field)
|
|
case "services":
|
|
return ec.fieldContext_Vendor_services(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 "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 "businessAssociateAgreementUrl":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field)
|
|
case "subprocessorsListUrl":
|
|
return ec.fieldContext_Vendor_subprocessorsListUrl(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 "showOnTrustCenter":
|
|
return ec.fieldContext_Vendor_showOnTrustCenter(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) _VendorBusinessAssociateAgreement_validFrom(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorBusinessAssociateAgreement_validFrom(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ValidFrom, 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_VendorBusinessAssociateAgreement_validFrom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorBusinessAssociateAgreement",
|
|
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) _VendorBusinessAssociateAgreement_validUntil(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorBusinessAssociateAgreement_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_VendorBusinessAssociateAgreement_validUntil(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorBusinessAssociateAgreement",
|
|
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) _VendorBusinessAssociateAgreement_fileName(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorBusinessAssociateAgreement_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_VendorBusinessAssociateAgreement_fileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorBusinessAssociateAgreement",
|
|
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) _VendorBusinessAssociateAgreement_fileUrl(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorBusinessAssociateAgreement_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.VendorBusinessAssociateAgreement().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_VendorBusinessAssociateAgreement_fileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorBusinessAssociateAgreement",
|
|
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) _VendorBusinessAssociateAgreement_fileSize(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorBusinessAssociateAgreement_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_VendorBusinessAssociateAgreement_fileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorBusinessAssociateAgreement",
|
|
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) _VendorBusinessAssociateAgreement_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorBusinessAssociateAgreement_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_VendorBusinessAssociateAgreement_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorBusinessAssociateAgreement",
|
|
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) _VendorBusinessAssociateAgreement_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorBusinessAssociateAgreement_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_VendorBusinessAssociateAgreement_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorBusinessAssociateAgreement",
|
|
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 "category":
|
|
return ec.fieldContext_Vendor_category(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Vendor_description(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Vendor_organization(ctx, field)
|
|
case "complianceReports":
|
|
return ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
case "businessAssociateAgreement":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field)
|
|
case "dataPrivacyAgreement":
|
|
return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field)
|
|
case "contacts":
|
|
return ec.fieldContext_Vendor_contacts(ctx, field)
|
|
case "services":
|
|
return ec.fieldContext_Vendor_services(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 "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 "businessAssociateAgreementUrl":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field)
|
|
case "subprocessorsListUrl":
|
|
return ec.fieldContext_Vendor_subprocessorsListUrl(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 "showOnTrustCenter":
|
|
return ec.fieldContext_Vendor_showOnTrustCenter(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_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.VendorConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorConnection_totalCount(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
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.VendorConnection().TotalCount(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.(int)
|
|
fc.Result = res
|
|
return ec.marshalNInt2int(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
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) _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.marshalNPageInfo2githubᚗ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) _VendorContact_id(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorContact_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_VendorContact_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorContact",
|
|
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) _VendorContact_vendor(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorContact_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.VendorContact().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_VendorContact_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorContact",
|
|
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 "category":
|
|
return ec.fieldContext_Vendor_category(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Vendor_description(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Vendor_organization(ctx, field)
|
|
case "complianceReports":
|
|
return ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
case "businessAssociateAgreement":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field)
|
|
case "dataPrivacyAgreement":
|
|
return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field)
|
|
case "contacts":
|
|
return ec.fieldContext_Vendor_contacts(ctx, field)
|
|
case "services":
|
|
return ec.fieldContext_Vendor_services(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 "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 "businessAssociateAgreementUrl":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field)
|
|
case "subprocessorsListUrl":
|
|
return ec.fieldContext_Vendor_subprocessorsListUrl(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 "showOnTrustCenter":
|
|
return ec.fieldContext_Vendor_showOnTrustCenter(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) _VendorContact_fullName(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorContact_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 {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorContact_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorContact",
|
|
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) _VendorContact_email(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorContact_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 {
|
|
return graphql.Null
|
|
}
|
|
res := resTmp.(*string)
|
|
fc.Result = res
|
|
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorContact_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorContact",
|
|
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) _VendorContact_phone(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorContact_phone(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Phone, 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_VendorContact_phone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorContact",
|
|
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) _VendorContact_role(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorContact_role(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.Role, 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_VendorContact_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorContact",
|
|
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) _VendorContact_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorContact_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_VendorContact_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorContact",
|
|
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) _VendorContact_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorContact_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_VendorContact_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorContact",
|
|
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) _VendorContactConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.VendorContactConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorContactConnection_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.VendorContactEdge)
|
|
fc.Result = res
|
|
return ec.marshalNVendorContactEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorContactConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorContactConnection",
|
|
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_VendorContactEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_VendorContactEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorContactEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorContactConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.VendorContactConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorContactConnection_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_VendorContactConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorContactConnection",
|
|
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) _VendorContactEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.VendorContactEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorContactEdge_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_VendorContactEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorContactEdge",
|
|
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) _VendorContactEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.VendorContactEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorContactEdge_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.VendorContact)
|
|
fc.Result = res
|
|
return ec.marshalNVendorContact2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContact(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorContactEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorContactEdge",
|
|
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_VendorContact_id(ctx, field)
|
|
case "vendor":
|
|
return ec.fieldContext_VendorContact_vendor(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_VendorContact_fullName(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_VendorContact_email(ctx, field)
|
|
case "phone":
|
|
return ec.fieldContext_VendorContact_phone(ctx, field)
|
|
case "role":
|
|
return ec.fieldContext_VendorContact_role(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_VendorContact_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_VendorContact_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorContact", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorDataPrivacyAgreement_id(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorDataPrivacyAgreement_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_VendorDataPrivacyAgreement_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorDataPrivacyAgreement",
|
|
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) _VendorDataPrivacyAgreement_vendor(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorDataPrivacyAgreement_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.VendorDataPrivacyAgreement().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_VendorDataPrivacyAgreement_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorDataPrivacyAgreement",
|
|
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 "category":
|
|
return ec.fieldContext_Vendor_category(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Vendor_description(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Vendor_organization(ctx, field)
|
|
case "complianceReports":
|
|
return ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
case "businessAssociateAgreement":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field)
|
|
case "dataPrivacyAgreement":
|
|
return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field)
|
|
case "contacts":
|
|
return ec.fieldContext_Vendor_contacts(ctx, field)
|
|
case "services":
|
|
return ec.fieldContext_Vendor_services(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 "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 "businessAssociateAgreementUrl":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field)
|
|
case "subprocessorsListUrl":
|
|
return ec.fieldContext_Vendor_subprocessorsListUrl(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 "showOnTrustCenter":
|
|
return ec.fieldContext_Vendor_showOnTrustCenter(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) _VendorDataPrivacyAgreement_validFrom(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorDataPrivacyAgreement_validFrom(ctx, field)
|
|
if err != nil {
|
|
return graphql.Null
|
|
}
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
ret = graphql.Null
|
|
}
|
|
}()
|
|
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
|
|
ctx = rctx // use context from middleware stack in children
|
|
return obj.ValidFrom, 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_VendorDataPrivacyAgreement_validFrom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorDataPrivacyAgreement",
|
|
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) _VendorDataPrivacyAgreement_validUntil(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorDataPrivacyAgreement_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_VendorDataPrivacyAgreement_validUntil(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorDataPrivacyAgreement",
|
|
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) _VendorDataPrivacyAgreement_fileName(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorDataPrivacyAgreement_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_VendorDataPrivacyAgreement_fileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorDataPrivacyAgreement",
|
|
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) _VendorDataPrivacyAgreement_fileUrl(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorDataPrivacyAgreement_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.VendorDataPrivacyAgreement().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_VendorDataPrivacyAgreement_fileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorDataPrivacyAgreement",
|
|
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) _VendorDataPrivacyAgreement_fileSize(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorDataPrivacyAgreement_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_VendorDataPrivacyAgreement_fileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorDataPrivacyAgreement",
|
|
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) _VendorDataPrivacyAgreement_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorDataPrivacyAgreement_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_VendorDataPrivacyAgreement_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorDataPrivacyAgreement",
|
|
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) _VendorDataPrivacyAgreement_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorDataPrivacyAgreement_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_VendorDataPrivacyAgreement_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorDataPrivacyAgreement",
|
|
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) _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 "category":
|
|
return ec.fieldContext_Vendor_category(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Vendor_description(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Vendor_organization(ctx, field)
|
|
case "complianceReports":
|
|
return ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
case "businessAssociateAgreement":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field)
|
|
case "dataPrivacyAgreement":
|
|
return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field)
|
|
case "contacts":
|
|
return ec.fieldContext_Vendor_contacts(ctx, field)
|
|
case "services":
|
|
return ec.fieldContext_Vendor_services(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 "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 "businessAssociateAgreementUrl":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field)
|
|
case "subprocessorsListUrl":
|
|
return ec.fieldContext_Vendor_subprocessorsListUrl(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 "showOnTrustCenter":
|
|
return ec.fieldContext_Vendor_showOnTrustCenter(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 "category":
|
|
return ec.fieldContext_Vendor_category(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Vendor_description(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Vendor_organization(ctx, field)
|
|
case "complianceReports":
|
|
return ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
case "businessAssociateAgreement":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field)
|
|
case "dataPrivacyAgreement":
|
|
return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field)
|
|
case "contacts":
|
|
return ec.fieldContext_Vendor_contacts(ctx, field)
|
|
case "services":
|
|
return ec.fieldContext_Vendor_services(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 "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 "businessAssociateAgreementUrl":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field)
|
|
case "subprocessorsListUrl":
|
|
return ec.fieldContext_Vendor_subprocessorsListUrl(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 "showOnTrustCenter":
|
|
return ec.fieldContext_Vendor_showOnTrustCenter(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 "position":
|
|
return ec.fieldContext_People_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_People_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_People_contractEndDate(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) _VendorService_id(ctx context.Context, field graphql.CollectedField, obj *types.VendorService) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorService_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_VendorService_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorService",
|
|
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) _VendorService_vendor(ctx context.Context, field graphql.CollectedField, obj *types.VendorService) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorService_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.VendorService().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_VendorService_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorService",
|
|
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 "category":
|
|
return ec.fieldContext_Vendor_category(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Vendor_description(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Vendor_organization(ctx, field)
|
|
case "complianceReports":
|
|
return ec.fieldContext_Vendor_complianceReports(ctx, field)
|
|
case "businessAssociateAgreement":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field)
|
|
case "dataPrivacyAgreement":
|
|
return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field)
|
|
case "contacts":
|
|
return ec.fieldContext_Vendor_contacts(ctx, field)
|
|
case "services":
|
|
return ec.fieldContext_Vendor_services(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 "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 "businessAssociateAgreementUrl":
|
|
return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field)
|
|
case "subprocessorsListUrl":
|
|
return ec.fieldContext_Vendor_subprocessorsListUrl(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 "showOnTrustCenter":
|
|
return ec.fieldContext_Vendor_showOnTrustCenter(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) _VendorService_name(ctx context.Context, field graphql.CollectedField, obj *types.VendorService) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorService_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_VendorService_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorService",
|
|
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) _VendorService_description(ctx context.Context, field graphql.CollectedField, obj *types.VendorService) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorService_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_VendorService_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorService",
|
|
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) _VendorService_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorService) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorService_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_VendorService_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorService",
|
|
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) _VendorService_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorService) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorService_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_VendorService_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorService",
|
|
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) _VendorServiceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.VendorServiceConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorServiceConnection_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.VendorServiceEdge)
|
|
fc.Result = res
|
|
return ec.marshalNVendorServiceEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceEdgeᚄ(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorServiceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorServiceConnection",
|
|
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_VendorServiceEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_VendorServiceEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorServiceEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VendorServiceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.VendorServiceConnection) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorServiceConnection_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_VendorServiceConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorServiceConnection",
|
|
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) _VendorServiceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.VendorServiceEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorServiceEdge_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_VendorServiceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorServiceEdge",
|
|
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) _VendorServiceEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.VendorServiceEdge) (ret graphql.Marshaler) {
|
|
fc, err := ec.fieldContext_VendorServiceEdge_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.VendorService)
|
|
fc.Result = res
|
|
return ec.marshalNVendorService2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorService(ctx, field.Selections, res)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VendorServiceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VendorServiceEdge",
|
|
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_VendorService_id(ctx, field)
|
|
case "vendor":
|
|
return ec.fieldContext_VendorService_vendor(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_VendorService_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_VendorService_description(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_VendorService_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_VendorService_updatedAt(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VendorService", 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), fc.Args["filter"].(*types.OrganizationFilter))
|
|
})
|
|
if err != nil {
|
|
ec.Error(ctx, 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) unmarshalInputAssessVendorInput(ctx context.Context, obj any) (types.AssessVendorInput, error) {
|
|
var it types.AssessVendorInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "websiteUrl"}
|
|
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 "websiteUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.WebsiteURL = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputAssetFilter(ctx context.Context, obj any) (types.AssetFilter, error) {
|
|
var it types.AssetFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"snapshotId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "snapshotId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SnapshotID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputAssetOrder(ctx context.Context, obj any) (types.AssetOrderBy, error) {
|
|
var it types.AssetOrderBy
|
|
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.unmarshalNAssetOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
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) unmarshalInputAuditOrder(ctx context.Context, obj any) (types.AuditOrderBy, error) {
|
|
var it types.AuditOrderBy
|
|
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.unmarshalNAuditOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputBulkPublishDocumentVersionsInput(ctx context.Context, obj any) (types.BulkPublishDocumentVersionsInput, error) {
|
|
var it types.BulkPublishDocumentVersionsInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"documentIds", "changelog"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "documentIds":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIds"))
|
|
data, err := ec.unmarshalNID2ᚕgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentIds = data
|
|
case "changelog":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changelog"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Changelog = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputBulkRequestSignaturesInput(ctx context.Context, obj any) (types.BulkRequestSignaturesInput, error) {
|
|
var it types.BulkRequestSignaturesInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"documentIds", "signatoryIds"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "documentIds":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIds"))
|
|
data, err := ec.unmarshalNID2ᚕgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentIds = data
|
|
case "signatoryIds":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatoryIds"))
|
|
data, err := ec.unmarshalNID2ᚕgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SignatoryIds = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCancelSignatureRequestInput(ctx context.Context, obj any) (types.CancelSignatureRequestInput, error) {
|
|
var it types.CancelSignatureRequestInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"documentVersionSignatureId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "documentVersionSignatureId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentVersionSignatureId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentVersionSignatureID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputComplianceRegistryFilter(ctx context.Context, obj any) (types.ComplianceRegistryFilter, error) {
|
|
var it types.ComplianceRegistryFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"snapshotId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "snapshotId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SnapshotID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputComplianceRegistryOrder(ctx context.Context, obj any) (types.ComplianceRegistryOrderBy, error) {
|
|
var it types.ComplianceRegistryOrderBy
|
|
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.unmarshalNComplianceRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = 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) unmarshalInputContinualImprovementRegistriesOrder(ctx context.Context, obj any) (types.ContinualImprovementRegistriesOrderBy, error) {
|
|
var it types.ContinualImprovementRegistriesOrderBy
|
|
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.unmarshalNContinualImprovementRegistriesOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputContinualImprovementRegistryFilter(ctx context.Context, obj any) (types.ContinualImprovementRegistryFilter, error) {
|
|
var it types.ContinualImprovementRegistryFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"snapshotId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "snapshotId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SnapshotID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputControlFilter(ctx context.Context, obj any) (types.ControlFilter, error) {
|
|
var it types.ControlFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"query"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "query":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Query = data
|
|
}
|
|
}
|
|
|
|
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) unmarshalInputCreateAssetInput(ctx context.Context, obj any) (types.CreateAssetInput, error) {
|
|
var it types.CreateAssetInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
if _, present := asMap["criticity"]; !present {
|
|
asMap["criticity"] = "MEDIUM"
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "name", "amount", "ownerId", "criticity", "assetType", "dataTypesStored", "vendorIds"}
|
|
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 "amount":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("amount"))
|
|
data, err := ec.unmarshalNInt2int(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Amount = 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
|
|
case "criticity":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("criticity"))
|
|
data, err := ec.unmarshalNCriticityLevel2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Criticity = data
|
|
case "assetType":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assetType"))
|
|
data, err := ec.unmarshalNAssetType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AssetType = data
|
|
case "dataTypesStored":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataTypesStored"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DataTypesStored = data
|
|
case "vendorIds":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorIds"))
|
|
data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.VendorIds = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateAuditInput(ctx context.Context, obj any) (types.CreateAuditInput, error) {
|
|
var it types.CreateAuditInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "frameworkId", "name", "validFrom", "validUntil", "state"}
|
|
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 "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
|
|
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 "validFrom":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validFrom"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ValidFrom = 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 "state":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state"))
|
|
data, err := ec.unmarshalOAuditState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.State = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateComplianceRegistryInput(ctx context.Context, obj any) (types.CreateComplianceRegistryInput, error) {
|
|
var it types.CreateComplianceRegistryInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "referenceId", "area", "source", "requirement", "actionsToBeImplemented", "regulator", "ownerId", "lastReviewDate", "dueDate", "status"}
|
|
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 "referenceId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("referenceId"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ReferenceID = data
|
|
case "area":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("area"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Area = data
|
|
case "source":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Source = data
|
|
case "requirement":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requirement"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Requirement = data
|
|
case "actionsToBeImplemented":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionsToBeImplemented"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ActionsToBeImplemented = data
|
|
case "regulator":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("regulator"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Regulator = 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
|
|
case "lastReviewDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastReviewDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.LastReviewDate = data
|
|
case "dueDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DueDate = data
|
|
case "status":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
|
|
data, err := ec.unmarshalNComplianceRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Status = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateContinualImprovementRegistryInput(ctx context.Context, obj any) (types.CreateContinualImprovementRegistryInput, error) {
|
|
var it types.CreateContinualImprovementRegistryInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "referenceId", "description", "source", "ownerId", "targetDate", "status", "priority"}
|
|
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 "referenceId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("referenceId"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ReferenceID = 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 "source":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Source = data
|
|
case "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
|
|
case "targetDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("targetDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TargetDate = data
|
|
case "status":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
|
|
data, err := ec.unmarshalNContinualImprovementRegistriesStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Status = data
|
|
case "priority":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priority"))
|
|
data, err := ec.unmarshalNContinualImprovementRegistriesPriority2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Priority = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateControlAuditMappingInput(ctx context.Context, obj any) (types.CreateControlAuditMappingInput, error) {
|
|
var it types.CreateControlAuditMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"controlId", "auditId"}
|
|
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 "auditId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AuditID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateControlDocumentMappingInput(ctx context.Context, obj any) (types.CreateControlDocumentMappingInput, error) {
|
|
var it types.CreateControlDocumentMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"controlId", "documentId"}
|
|
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 "documentId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateControlInput(ctx context.Context, obj any) (types.CreateControlInput, error) {
|
|
var it types.CreateControlInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"frameworkId", "sectionTitle", "name", "description", "status", "exclusionJustification"}
|
|
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
|
|
case "sectionTitle":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sectionTitle"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SectionTitle = 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 "status":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
|
|
data, err := ec.unmarshalNControlStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Status = data
|
|
case "exclusionJustification":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("exclusionJustification"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ExclusionJustification = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateControlMeasureMappingInput(ctx context.Context, obj any) (types.CreateControlMeasureMappingInput, error) {
|
|
var it types.CreateControlMeasureMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"controlId", "measureId"}
|
|
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 "measureId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.MeasureID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateControlSnapshotMappingInput(ctx context.Context, obj any) (types.CreateControlSnapshotMappingInput, error) {
|
|
var it types.CreateControlSnapshotMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"controlId", "snapshotId"}
|
|
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 "snapshotId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SnapshotID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateDatumInput(ctx context.Context, obj any) (types.CreateDatumInput, error) {
|
|
var it types.CreateDatumInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "name", "dataClassification", "ownerId", "vendorIds"}
|
|
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 "dataClassification":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataClassification"))
|
|
data, err := ec.unmarshalNDataClassification2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DataClassification = 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
|
|
case "vendorIds":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorIds"))
|
|
data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.VendorIds = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateDocumentInput(ctx context.Context, obj any) (types.CreateDocumentInput, error) {
|
|
var it types.CreateDocumentInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "title", "content", "ownerId", "documentType"}
|
|
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 "title":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Title = 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 "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
|
|
case "documentType":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentType"))
|
|
data, err := ec.unmarshalNDocumentType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentType = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateDraftDocumentVersionInput(ctx context.Context, obj any) (types.CreateDraftDocumentVersionInput, error) {
|
|
var it types.CreateDraftDocumentVersionInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"documentID"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "documentID":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentID"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentID = 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) unmarshalInputCreateMeasureInput(ctx context.Context, obj any) (types.CreateMeasureInput, error) {
|
|
var it types.CreateMeasureInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "name", "description", "category"}
|
|
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
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateNonconformityRegistryInput(ctx context.Context, obj any) (types.CreateNonconformityRegistryInput, error) {
|
|
var it types.CreateNonconformityRegistryInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "referenceId", "description", "auditId", "dateIdentified", "rootCause", "correctiveAction", "ownerId", "dueDate", "status", "effectivenessCheck"}
|
|
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 "referenceId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("referenceId"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ReferenceID = 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 "auditId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AuditID = data
|
|
case "dateIdentified":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateIdentified"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DateIdentified = data
|
|
case "rootCause":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rootCause"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.RootCause = data
|
|
case "correctiveAction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correctiveAction"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.CorrectiveAction = 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
|
|
case "dueDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DueDate = data
|
|
case "status":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
|
|
data, err := ec.unmarshalNNonconformityRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Status = data
|
|
case "effectivenessCheck":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("effectivenessCheck"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.EffectivenessCheck = 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", "position", "contractStartDate", "contractEndDate"}
|
|
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
|
|
case "position":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("position"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Position = data
|
|
case "contractStartDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractStartDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ContractStartDate = data
|
|
case "contractEndDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractEndDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ContractEndDate = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateProcessingActivityRegistryInput(ctx context.Context, obj any) (types.CreateProcessingActivityRegistryInput, error) {
|
|
var it types.CreateProcessingActivityRegistryInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "name", "purpose", "dataSubjectCategory", "personalDataCategory", "specialOrCriminalData", "consentEvidenceLink", "lawfulBasis", "recipients", "location", "internationalTransfers", "transferSafeguards", "retentionPeriod", "securityMeasures", "dataProtectionImpactAssessment", "transferImpactAssessment"}
|
|
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 "purpose":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purpose"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Purpose = data
|
|
case "dataSubjectCategory":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataSubjectCategory"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DataSubjectCategory = data
|
|
case "personalDataCategory":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalDataCategory"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.PersonalDataCategory = data
|
|
case "specialOrCriminalData":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("specialOrCriminalData"))
|
|
data, err := ec.unmarshalNProcessingActivityRegistrySpecialOrCriminalData2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SpecialOrCriminalData = data
|
|
case "consentEvidenceLink":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("consentEvidenceLink"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ConsentEvidenceLink = data
|
|
case "lawfulBasis":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lawfulBasis"))
|
|
data, err := ec.unmarshalNProcessingActivityRegistryLawfulBasis2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.LawfulBasis = data
|
|
case "recipients":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipients"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Recipients = data
|
|
case "location":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Location = data
|
|
case "internationalTransfers":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("internationalTransfers"))
|
|
data, err := ec.unmarshalNBoolean2bool(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.InternationalTransfers = data
|
|
case "transferSafeguards":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("transferSafeguards"))
|
|
data, err := ec.unmarshalOProcessingActivityRegistryTransferSafeguards2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferSafeguards(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TransferSafeguards = data
|
|
case "retentionPeriod":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("retentionPeriod"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.RetentionPeriod = data
|
|
case "securityMeasures":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityMeasures"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SecurityMeasures = data
|
|
case "dataProtectionImpactAssessment":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProtectionImpactAssessment"))
|
|
data, err := ec.unmarshalNProcessingActivityRegistryDataProtectionImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DataProtectionImpactAssessment = data
|
|
case "transferImpactAssessment":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("transferImpactAssessment"))
|
|
data, err := ec.unmarshalNProcessingActivityRegistryTransferImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TransferImpactAssessment = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateRiskDocumentMappingInput(ctx context.Context, obj any) (types.CreateRiskDocumentMappingInput, error) {
|
|
var it types.CreateRiskDocumentMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"riskId", "documentId"}
|
|
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 "documentId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentID = 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) unmarshalInputCreateRiskMeasureMappingInput(ctx context.Context, obj any) (types.CreateRiskMeasureMappingInput, error) {
|
|
var it types.CreateRiskMeasureMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"riskId", "measureId"}
|
|
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 "measureId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.MeasureID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateSnapshotInput(ctx context.Context, obj any) (types.CreateSnapshotInput, error) {
|
|
var it types.CreateSnapshotInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "name", "description", "type"}
|
|
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 "type":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
|
|
data, err := ec.unmarshalNSnapshotsType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotsType(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Type = 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{"organizationId", "measureId", "name", "description", "timeEstimate", "assignedToId", "deadline"}
|
|
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 "measureId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.MeasureID = 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
|
|
case "deadline":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deadline"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Deadline = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateTrustCenterAccessInput(ctx context.Context, obj any) (types.CreateTrustCenterAccessInput, error) {
|
|
var it types.CreateTrustCenterAccessInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"trustCenterId", "email", "name", "active"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "trustCenterId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TrustCenterID = 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 "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "active":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("active"))
|
|
data, err := ec.unmarshalNBoolean2bool(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Active = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateVendorContactInput(ctx context.Context, obj any) (types.CreateVendorContactInput, error) {
|
|
var it types.CreateVendorContactInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"vendorId", "fullName", "email", "phone", "role"}
|
|
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 "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 "email":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Email = data
|
|
case "phone":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phone"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Phone = data
|
|
case "role":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Role = 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", "businessAssociateAgreementUrl", "subprocessorsListUrl", "certifications", "securityPageUrl", "trustPageUrl", "statusPageUrl", "termsOfServiceUrl", "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.unmarshalOVendorCategory2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory(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 "businessAssociateAgreementUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessAssociateAgreementUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.BusinessAssociateAgreementURL = data
|
|
case "subprocessorsListUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subprocessorsListUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SubprocessorsListURL = 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 "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) unmarshalInputCreateVendorServiceInput(ctx context.Context, obj any) (types.CreateVendorServiceInput, error) {
|
|
var it types.CreateVendorServiceInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"vendorId", "name", "description", "url", "type"}
|
|
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 "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 "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 "type":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Type = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDatumFilter(ctx context.Context, obj any) (types.DatumFilter, error) {
|
|
var it types.DatumFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"snapshotId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "snapshotId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SnapshotID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDatumOrder(ctx context.Context, obj any) (types.DatumOrderBy, error) {
|
|
var it types.DatumOrderBy
|
|
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.unmarshalNDatumOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDatumOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteAssetInput(ctx context.Context, obj any) (types.DeleteAssetInput, error) {
|
|
var it types.DeleteAssetInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"assetId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "assetId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assetId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AssetID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteAuditInput(ctx context.Context, obj any) (types.DeleteAuditInput, error) {
|
|
var it types.DeleteAuditInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"auditId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "auditId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AuditID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteAuditReportInput(ctx context.Context, obj any) (types.DeleteAuditReportInput, error) {
|
|
var it types.DeleteAuditReportInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"auditId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "auditId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AuditID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteComplianceRegistryInput(ctx context.Context, obj any) (types.DeleteComplianceRegistryInput, error) {
|
|
var it types.DeleteComplianceRegistryInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"complianceRegistryId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "complianceRegistryId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("complianceRegistryId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ComplianceRegistryID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteContinualImprovementRegistryInput(ctx context.Context, obj any) (types.DeleteContinualImprovementRegistryInput, error) {
|
|
var it types.DeleteContinualImprovementRegistryInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"continualImprovementRegistryId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "continualImprovementRegistryId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("continualImprovementRegistryId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ContinualImprovementRegistryID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteControlAuditMappingInput(ctx context.Context, obj any) (types.DeleteControlAuditMappingInput, error) {
|
|
var it types.DeleteControlAuditMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"controlId", "auditId"}
|
|
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 "auditId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AuditID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteControlDocumentMappingInput(ctx context.Context, obj any) (types.DeleteControlDocumentMappingInput, error) {
|
|
var it types.DeleteControlDocumentMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"controlId", "documentId"}
|
|
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 "documentId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteControlInput(ctx context.Context, obj any) (types.DeleteControlInput, error) {
|
|
var it types.DeleteControlInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"controlId"}
|
|
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
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteControlMeasureMappingInput(ctx context.Context, obj any) (types.DeleteControlMeasureMappingInput, error) {
|
|
var it types.DeleteControlMeasureMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"controlId", "measureId"}
|
|
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 "measureId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.MeasureID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteControlSnapshotMappingInput(ctx context.Context, obj any) (types.DeleteControlSnapshotMappingInput, error) {
|
|
var it types.DeleteControlSnapshotMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"controlId", "snapshotId"}
|
|
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 "snapshotId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SnapshotID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteDatumInput(ctx context.Context, obj any) (types.DeleteDatumInput, error) {
|
|
var it types.DeleteDatumInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"datumId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "datumId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("datumId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DatumID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteDocumentInput(ctx context.Context, obj any) (types.DeleteDocumentInput, error) {
|
|
var it types.DeleteDocumentInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"documentId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "documentId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteDraftDocumentVersionInput(ctx context.Context, obj any) (types.DeleteDraftDocumentVersionInput, error) {
|
|
var it types.DeleteDraftDocumentVersionInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"documentVersionId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "documentVersionId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentVersionId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentVersionID = 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) unmarshalInputDeleteMeasureInput(ctx context.Context, obj any) (types.DeleteMeasureInput, error) {
|
|
var it types.DeleteMeasureInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"measureId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "measureId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.MeasureID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteNonconformityRegistryInput(ctx context.Context, obj any) (types.DeleteNonconformityRegistryInput, error) {
|
|
var it types.DeleteNonconformityRegistryInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"nonconformityRegistryId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "nonconformityRegistryId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonconformityRegistryId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.NonconformityRegistryID = 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) unmarshalInputDeleteProcessingActivityRegistryInput(ctx context.Context, obj any) (types.DeleteProcessingActivityRegistryInput, error) {
|
|
var it types.DeleteProcessingActivityRegistryInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"processingActivityRegistryId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "processingActivityRegistryId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("processingActivityRegistryId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ProcessingActivityRegistryID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteRiskDocumentMappingInput(ctx context.Context, obj any) (types.DeleteRiskDocumentMappingInput, error) {
|
|
var it types.DeleteRiskDocumentMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"riskId", "documentId"}
|
|
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 "documentId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentID = 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) unmarshalInputDeleteRiskMeasureMappingInput(ctx context.Context, obj any) (types.DeleteRiskMeasureMappingInput, error) {
|
|
var it types.DeleteRiskMeasureMappingInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"riskId", "measureId"}
|
|
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 "measureId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.MeasureID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteSnapshotInput(ctx context.Context, obj any) (types.DeleteSnapshotInput, error) {
|
|
var it types.DeleteSnapshotInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"snapshotId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "snapshotId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SnapshotID = 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) unmarshalInputDeleteTrustCenterAccessInput(ctx context.Context, obj any) (types.DeleteTrustCenterAccessInput, error) {
|
|
var it types.DeleteTrustCenterAccessInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id"}
|
|
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
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteVendorBusinessAssociateAgreementInput(ctx context.Context, obj any) (types.DeleteVendorBusinessAssociateAgreementInput, error) {
|
|
var it types.DeleteVendorBusinessAssociateAgreementInput
|
|
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) 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) unmarshalInputDeleteVendorContactInput(ctx context.Context, obj any) (types.DeleteVendorContactInput, error) {
|
|
var it types.DeleteVendorContactInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"vendorContactId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "vendorContactId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorContactId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.VendorContactID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteVendorDataPrivacyAgreementInput(ctx context.Context, obj any) (types.DeleteVendorDataPrivacyAgreementInput, error) {
|
|
var it types.DeleteVendorDataPrivacyAgreementInput
|
|
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) 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) unmarshalInputDeleteVendorServiceInput(ctx context.Context, obj any) (types.DeleteVendorServiceInput, error) {
|
|
var it types.DeleteVendorServiceInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"vendorServiceId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "vendorServiceId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorServiceId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.VendorServiceID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDocumentFilter(ctx context.Context, obj any) (types.DocumentFilter, error) {
|
|
var it types.DocumentFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"query"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "query":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Query = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDocumentOrder(ctx context.Context, obj any) (types.DocumentOrderBy, error) {
|
|
var it types.DocumentOrderBy
|
|
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.unmarshalNDocumentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDocumentVersionFilter(ctx context.Context, obj any) (types.DocumentVersionFilter, error) {
|
|
var it types.DocumentVersionFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"status"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "status":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
|
|
data, err := ec.unmarshalODocumentStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Status = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDocumentVersionOrder(ctx context.Context, obj any) (types.DocumentVersionOrderBy, error) {
|
|
var it types.DocumentVersionOrderBy
|
|
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.unmarshalNDocumentVersionOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDocumentVersionSignatureOrder(ctx context.Context, obj any) (types.DocumentVersionSignatureOrder, error) {
|
|
var it types.DocumentVersionSignatureOrder
|
|
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.unmarshalNDocumentVersionSignatureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField(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) 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) unmarshalInputExportDocumentVersionPDFInput(ctx context.Context, obj any) (types.ExportDocumentVersionPDFInput, error) {
|
|
var it types.ExportDocumentVersionPDFInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"documentVersionId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "documentVersionId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentVersionId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentVersionID = 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) unmarshalInputGenerateDocumentChangelogInput(ctx context.Context, obj any) (types.GenerateDocumentChangelogInput, error) {
|
|
var it types.GenerateDocumentChangelogInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"documentId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "documentId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputGenerateFrameworkStateOfApplicabilityInput(ctx context.Context, obj any) (types.GenerateFrameworkStateOfApplicabilityInput, error) {
|
|
var it types.GenerateFrameworkStateOfApplicabilityInput
|
|
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) 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) unmarshalInputImportMeasureInput(ctx context.Context, obj any) (types.ImportMeasureInput, error) {
|
|
var it types.ImportMeasureInput
|
|
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) unmarshalInputMeasureFilter(ctx context.Context, obj any) (types.MeasureFilter, error) {
|
|
var it types.MeasureFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"query"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "query":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Query = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputMeasureOrder(ctx context.Context, obj any) (types.MeasureOrderBy, error) {
|
|
var it types.MeasureOrderBy
|
|
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.unmarshalNMeasureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputNonconformityRegistryFilter(ctx context.Context, obj any) (types.NonconformityRegistryFilter, error) {
|
|
var it types.NonconformityRegistryFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"snapshotId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "snapshotId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SnapshotID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputNonconformityRegistryOrder(ctx context.Context, obj any) (types.NonconformityRegistryOrderBy, error) {
|
|
var it types.NonconformityRegistryOrderBy
|
|
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.unmarshalNNonconformityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputOrganizationFilter(ctx context.Context, obj any) (types.OrganizationFilter, error) {
|
|
var it types.OrganizationFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"trustCenterSlug"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "trustCenterSlug":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterSlug"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TrustCenterSlug = 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ᚋcoredataᚐOrganizationOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputPeopleFilter(ctx context.Context, obj any) (types.PeopleFilter, error) {
|
|
var it types.PeopleFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"excludeContractEnded"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "excludeContractEnded":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("excludeContractEnded"))
|
|
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ExcludeContractEnded = 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) unmarshalInputProcessingActivityRegistryFilter(ctx context.Context, obj any) (types.ProcessingActivityRegistryFilter, error) {
|
|
var it types.ProcessingActivityRegistryFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"snapshotId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "snapshotId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SnapshotID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputProcessingActivityRegistryOrder(ctx context.Context, obj any) (types.ProcessingActivityRegistryOrderBy, error) {
|
|
var it types.ProcessingActivityRegistryOrderBy
|
|
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.unmarshalNProcessingActivityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputPublishDocumentVersionInput(ctx context.Context, obj any) (types.PublishDocumentVersionInput, error) {
|
|
var it types.PublishDocumentVersionInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"documentId", "changelog"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "documentId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentID = data
|
|
case "changelog":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changelog"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Changelog = 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) unmarshalInputRequestSignatureInput(ctx context.Context, obj any) (types.RequestSignatureInput, error) {
|
|
var it types.RequestSignatureInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"documentVersionId", "signatoryId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "documentVersionId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentVersionId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentVersionID = data
|
|
case "signatoryId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatoryId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SignatoryID = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputRiskFilter(ctx context.Context, obj any) (types.RiskFilter, error) {
|
|
var it types.RiskFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"query"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "query":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Query = data
|
|
}
|
|
}
|
|
|
|
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) unmarshalInputSendSigningNotificationsInput(ctx context.Context, obj any) (types.SendSigningNotificationsInput, error) {
|
|
var it types.SendSigningNotificationsInput
|
|
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) unmarshalInputSnapshotOrder(ctx context.Context, obj any) (types.SnapshotOrderBy, error) {
|
|
var it types.SnapshotOrderBy
|
|
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.unmarshalNSnapshotOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField(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) unmarshalInputTrustCenterAccessOrder(ctx context.Context, obj any) (types.OrderBy[coredata.TrustCenterAccessOrderField], error) {
|
|
var it types.OrderBy[coredata.TrustCenterAccessOrderField]
|
|
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.unmarshalNTrustCenterAccessOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField(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) unmarshalInputUpdateAssetInput(ctx context.Context, obj any) (types.UpdateAssetInput, error) {
|
|
var it types.UpdateAssetInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "name", "amount", "ownerId", "criticity", "assetType", "dataTypesStored", "vendorIds"}
|
|
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 "amount":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("amount"))
|
|
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Amount = 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 "criticity":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("criticity"))
|
|
data, err := ec.unmarshalOCriticityLevel2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Criticity = data
|
|
case "assetType":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assetType"))
|
|
data, err := ec.unmarshalOAssetType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AssetType = data
|
|
case "dataTypesStored":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataTypesStored"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DataTypesStored = data
|
|
case "vendorIds":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorIds"))
|
|
data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.VendorIds = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateAuditInput(ctx context.Context, obj any) (types.UpdateAuditInput, error) {
|
|
var it types.UpdateAuditInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "name", "validFrom", "validUntil", "state", "showOnTrustCenter"}
|
|
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 "validFrom":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validFrom"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ValidFrom = 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 "state":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state"))
|
|
data, err := ec.unmarshalOAuditState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.State = data
|
|
case "showOnTrustCenter":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("showOnTrustCenter"))
|
|
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ShowOnTrustCenter = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateComplianceRegistryInput(ctx context.Context, obj any) (types.UpdateComplianceRegistryInput, error) {
|
|
var it types.UpdateComplianceRegistryInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "referenceId", "area", "source", "requirement", "actionsToBeImplemented", "regulator", "ownerId", "lastReviewDate", "dueDate", "status"}
|
|
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 "referenceId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("referenceId"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ReferenceID = data
|
|
case "area":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("area"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Area = data
|
|
case "source":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Source = data
|
|
case "requirement":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requirement"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Requirement = data
|
|
case "actionsToBeImplemented":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionsToBeImplemented"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ActionsToBeImplemented = data
|
|
case "regulator":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("regulator"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Regulator = 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 "lastReviewDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastReviewDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.LastReviewDate = data
|
|
case "dueDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DueDate = data
|
|
case "status":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
|
|
data, err := ec.unmarshalOComplianceRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Status = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateContinualImprovementRegistryInput(ctx context.Context, obj any) (types.UpdateContinualImprovementRegistryInput, error) {
|
|
var it types.UpdateContinualImprovementRegistryInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "referenceId", "description", "source", "ownerId", "targetDate", "status", "priority"}
|
|
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 "referenceId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("referenceId"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ReferenceID = 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 "source":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Source = data
|
|
case "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 "targetDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("targetDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TargetDate = data
|
|
case "status":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
|
|
data, err := ec.unmarshalOContinualImprovementRegistriesStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Status = data
|
|
case "priority":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priority"))
|
|
data, err := ec.unmarshalOContinualImprovementRegistriesPriority2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Priority = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateControlInput(ctx context.Context, obj any) (types.UpdateControlInput, error) {
|
|
var it types.UpdateControlInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "sectionTitle", "name", "description", "status", "exclusionJustification"}
|
|
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 "sectionTitle":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sectionTitle"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SectionTitle = 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 "status":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
|
|
data, err := ec.unmarshalOControlStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Status = data
|
|
case "exclusionJustification":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("exclusionJustification"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ExclusionJustification = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateDatumInput(ctx context.Context, obj any) (types.UpdateDatumInput, error) {
|
|
var it types.UpdateDatumInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "name", "dataClassification", "ownerId", "vendorIds"}
|
|
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 "dataClassification":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataClassification"))
|
|
data, err := ec.unmarshalODataClassification2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DataClassification = 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 "vendorIds":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorIds"))
|
|
data, err := ec.unmarshalOID2ᚕgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.VendorIds = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateDocumentInput(ctx context.Context, obj any) (types.UpdateDocumentInput, error) {
|
|
var it types.UpdateDocumentInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "title", "content", "ownerId", "createdBy", "documentType", "showOnTrustCenter"}
|
|
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 "title":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Title = 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 "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 "createdBy":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.CreatedBy = data
|
|
case "documentType":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentType"))
|
|
data, err := ec.unmarshalODocumentType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentType = data
|
|
case "showOnTrustCenter":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("showOnTrustCenter"))
|
|
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ShowOnTrustCenter = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateDocumentVersionInput(ctx context.Context, obj any) (types.UpdateDocumentVersionInput, error) {
|
|
var it types.UpdateDocumentVersionInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"documentVersionId", "content"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "documentVersionId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentVersionId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DocumentVersionID = 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
|
|
}
|
|
}
|
|
|
|
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) unmarshalInputUpdateMeasureInput(ctx context.Context, obj any) (types.UpdateMeasureInput, error) {
|
|
var it types.UpdateMeasureInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "name", "description", "category", "state"}
|
|
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.unmarshalOMeasureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.State = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateNonconformityRegistryInput(ctx context.Context, obj any) (types.UpdateNonconformityRegistryInput, error) {
|
|
var it types.UpdateNonconformityRegistryInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "referenceId", "description", "dateIdentified", "rootCause", "correctiveAction", "ownerId", "auditId", "dueDate", "status", "effectivenessCheck"}
|
|
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 "referenceId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("referenceId"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ReferenceID = 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 "dateIdentified":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateIdentified"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DateIdentified = data
|
|
case "rootCause":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rootCause"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.RootCause = data
|
|
case "correctiveAction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correctiveAction"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.CorrectiveAction = 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 "auditId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId"))
|
|
data, err := ec.unmarshalOID2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AuditID = data
|
|
case "dueDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DueDate = data
|
|
case "status":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
|
|
data, err := ec.unmarshalONonconformityRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Status = data
|
|
case "effectivenessCheck":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("effectivenessCheck"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.EffectivenessCheck = 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", "position", "contractStartDate", "contractEndDate"}
|
|
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
|
|
case "position":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("position"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Position = data
|
|
case "contractStartDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractStartDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ContractStartDate = data
|
|
case "contractEndDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractEndDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ContractEndDate = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateProcessingActivityRegistryInput(ctx context.Context, obj any) (types.UpdateProcessingActivityRegistryInput, error) {
|
|
var it types.UpdateProcessingActivityRegistryInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "name", "purpose", "dataSubjectCategory", "personalDataCategory", "specialOrCriminalData", "consentEvidenceLink", "lawfulBasis", "recipients", "location", "internationalTransfers", "transferSafeguards", "retentionPeriod", "securityMeasures", "dataProtectionImpactAssessment", "transferImpactAssessment"}
|
|
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 "purpose":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purpose"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Purpose = data
|
|
case "dataSubjectCategory":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataSubjectCategory"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DataSubjectCategory = data
|
|
case "personalDataCategory":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalDataCategory"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.PersonalDataCategory = data
|
|
case "specialOrCriminalData":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("specialOrCriminalData"))
|
|
data, err := ec.unmarshalOProcessingActivityRegistrySpecialOrCriminalData2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SpecialOrCriminalData = data
|
|
case "consentEvidenceLink":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("consentEvidenceLink"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ConsentEvidenceLink = data
|
|
case "lawfulBasis":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lawfulBasis"))
|
|
data, err := ec.unmarshalOProcessingActivityRegistryLawfulBasis2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.LawfulBasis = data
|
|
case "recipients":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipients"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Recipients = data
|
|
case "location":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Location = data
|
|
case "internationalTransfers":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("internationalTransfers"))
|
|
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.InternationalTransfers = data
|
|
case "transferSafeguards":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("transferSafeguards"))
|
|
data, err := ec.unmarshalOProcessingActivityRegistryTransferSafeguards2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferSafeguards(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TransferSafeguards = data
|
|
case "retentionPeriod":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("retentionPeriod"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.RetentionPeriod = data
|
|
case "securityMeasures":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityMeasures"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SecurityMeasures = data
|
|
case "dataProtectionImpactAssessment":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProtectionImpactAssessment"))
|
|
data, err := ec.unmarshalOProcessingActivityRegistryDataProtectionImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.DataProtectionImpactAssessment = data
|
|
case "transferImpactAssessment":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("transferImpactAssessment"))
|
|
data, err := ec.unmarshalOProcessingActivityRegistryTransferImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TransferImpactAssessment = 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", "deadline"}
|
|
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
|
|
case "deadline":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deadline"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Deadline = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateTrustCenterAccessInput(ctx context.Context, obj any) (types.UpdateTrustCenterAccessInput, error) {
|
|
var it types.UpdateTrustCenterAccessInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "name", "active"}
|
|
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 "active":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("active"))
|
|
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Active = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateTrustCenterInput(ctx context.Context, obj any) (types.UpdateTrustCenterInput, error) {
|
|
var it types.UpdateTrustCenterInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"trustCenterId", "active", "slug"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "trustCenterId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.TrustCenterID = data
|
|
case "active":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("active"))
|
|
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Active = data
|
|
case "slug":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("slug"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Slug = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateVendorBusinessAssociateAgreementInput(ctx context.Context, obj any) (types.UpdateVendorBusinessAssociateAgreementInput, error) {
|
|
var it types.UpdateVendorBusinessAssociateAgreementInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"vendorId", "validFrom", "validUntil"}
|
|
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 "validFrom":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validFrom"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ValidFrom = 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
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateVendorContactInput(ctx context.Context, obj any) (types.UpdateVendorContactInput, error) {
|
|
var it types.UpdateVendorContactInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "fullName", "email", "phone", "role"}
|
|
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 "email":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Email = data
|
|
case "phone":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phone"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Phone = data
|
|
case "role":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Role = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateVendorDataPrivacyAgreementInput(ctx context.Context, obj any) (types.UpdateVendorDataPrivacyAgreementInput, error) {
|
|
var it types.UpdateVendorDataPrivacyAgreementInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"vendorId", "validFrom", "validUntil"}
|
|
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 "validFrom":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validFrom"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ValidFrom = 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
|
|
}
|
|
}
|
|
|
|
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", "statusPageUrl", "termsOfServiceUrl", "privacyPolicyUrl", "serviceLevelAgreementUrl", "dataProcessingAgreementUrl", "businessAssociateAgreementUrl", "subprocessorsListUrl", "websiteUrl", "legalName", "headquarterAddress", "category", "certifications", "securityPageUrl", "trustPageUrl", "businessOwnerId", "securityOwnerId", "showOnTrustCenter"}
|
|
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 "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 "businessAssociateAgreementUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessAssociateAgreementUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.BusinessAssociateAgreementURL = data
|
|
case "subprocessorsListUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subprocessorsListUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SubprocessorsListURL = 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.unmarshalOVendorCategory2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory(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
|
|
case "showOnTrustCenter":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("showOnTrustCenter"))
|
|
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ShowOnTrustCenter = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateVendorServiceInput(ctx context.Context, obj any) (types.UpdateVendorServiceInput, error) {
|
|
var it types.UpdateVendorServiceInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "name", "description", "url", "type"}
|
|
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 "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 "type":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Type = data
|
|
}
|
|
}
|
|
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUploadAuditReportInput(ctx context.Context, obj any) (types.UploadAuditReportInput, error) {
|
|
var it types.UploadAuditReportInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"auditId", "file"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "auditId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AuditID = 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) unmarshalInputUploadMeasureEvidenceInput(ctx context.Context, obj any) (types.UploadMeasureEvidenceInput, error) {
|
|
var it types.UploadMeasureEvidenceInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"measureId", "file"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "measureId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId"))
|
|
data, err := ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.MeasureID = 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) unmarshalInputUploadTaskEvidenceInput(ctx context.Context, obj any) (types.UploadTaskEvidenceInput, error) {
|
|
var it types.UploadTaskEvidenceInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"taskId", "file"}
|
|
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 "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) unmarshalInputUploadVendorBusinessAssociateAgreementInput(ctx context.Context, obj any) (types.UploadVendorBusinessAssociateAgreementInput, error) {
|
|
var it types.UploadVendorBusinessAssociateAgreementInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"vendorId", "validFrom", "validUntil", "fileName", "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 "validFrom":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validFrom"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ValidFrom = 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 "fileName":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileName"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.FileName = 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) 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) unmarshalInputUploadVendorDataPrivacyAgreementInput(ctx context.Context, obj any) (types.UploadVendorDataPrivacyAgreementInput, error) {
|
|
var it types.UploadVendorDataPrivacyAgreementInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"vendorId", "validFrom", "validUntil", "fileName", "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 "validFrom":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validFrom"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ValidFrom = 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 "fileName":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileName"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.FileName = 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) unmarshalInputVendorContactOrder(ctx context.Context, obj any) (types.VendorContactOrderBy, error) {
|
|
var it types.VendorContactOrderBy
|
|
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.unmarshalNVendorContactOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField(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
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputVendorServiceOrder(ctx context.Context, obj any) (types.VendorServiceOrderBy, error) {
|
|
var it types.VendorServiceOrderBy
|
|
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.unmarshalNVendorServiceOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = 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.VendorService:
|
|
return ec._VendorService(ctx, sel, &obj)
|
|
case *types.VendorService:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorService(ctx, sel, obj)
|
|
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.VendorDataPrivacyAgreement:
|
|
return ec._VendorDataPrivacyAgreement(ctx, sel, &obj)
|
|
case *types.VendorDataPrivacyAgreement:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorDataPrivacyAgreement(ctx, sel, obj)
|
|
case types.VendorContact:
|
|
return ec._VendorContact(ctx, sel, &obj)
|
|
case *types.VendorContact:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorContact(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.VendorBusinessAssociateAgreement:
|
|
return ec._VendorBusinessAssociateAgreement(ctx, sel, &obj)
|
|
case *types.VendorBusinessAssociateAgreement:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorBusinessAssociateAgreement(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.TrustCenterAccess:
|
|
return ec._TrustCenterAccess(ctx, sel, &obj)
|
|
case *types.TrustCenterAccess:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._TrustCenterAccess(ctx, sel, obj)
|
|
case types.TrustCenter:
|
|
return ec._TrustCenter(ctx, sel, &obj)
|
|
case *types.TrustCenter:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._TrustCenter(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.Snapshot:
|
|
return ec._Snapshot(ctx, sel, &obj)
|
|
case *types.Snapshot:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Snapshot(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.Report:
|
|
return ec._Report(ctx, sel, &obj)
|
|
case *types.Report:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Report(ctx, sel, obj)
|
|
case types.ProcessingActivityRegistry:
|
|
return ec._ProcessingActivityRegistry(ctx, sel, &obj)
|
|
case *types.ProcessingActivityRegistry:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._ProcessingActivityRegistry(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.NonconformityRegistry:
|
|
return ec._NonconformityRegistry(ctx, sel, &obj)
|
|
case *types.NonconformityRegistry:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._NonconformityRegistry(ctx, sel, obj)
|
|
case types.Measure:
|
|
return ec._Measure(ctx, sel, &obj)
|
|
case *types.Measure:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Measure(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.DocumentVersionSignature:
|
|
return ec._DocumentVersionSignature(ctx, sel, &obj)
|
|
case *types.DocumentVersionSignature:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._DocumentVersionSignature(ctx, sel, obj)
|
|
case types.DocumentVersion:
|
|
return ec._DocumentVersion(ctx, sel, &obj)
|
|
case *types.DocumentVersion:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._DocumentVersion(ctx, sel, obj)
|
|
case types.Document:
|
|
return ec._Document(ctx, sel, &obj)
|
|
case *types.Document:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Document(ctx, sel, obj)
|
|
case types.Datum:
|
|
return ec._Datum(ctx, sel, &obj)
|
|
case *types.Datum:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Datum(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.ContinualImprovementRegistry:
|
|
return ec._ContinualImprovementRegistry(ctx, sel, &obj)
|
|
case *types.ContinualImprovementRegistry:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._ContinualImprovementRegistry(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)
|
|
case types.ComplianceRegistry:
|
|
return ec._ComplianceRegistry(ctx, sel, &obj)
|
|
case *types.ComplianceRegistry:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._ComplianceRegistry(ctx, sel, obj)
|
|
case types.Audit:
|
|
return ec._Audit(ctx, sel, &obj)
|
|
case *types.Audit:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Audit(ctx, sel, obj)
|
|
case types.Asset:
|
|
return ec._Asset(ctx, sel, &obj)
|
|
case *types.Asset:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Asset(ctx, sel, obj)
|
|
default:
|
|
panic(fmt.Errorf("unexpected type %T", obj))
|
|
}
|
|
}
|
|
|
|
// endregion ************************** interface.gotpl ***************************
|
|
|
|
// region **************************** object.gotpl ****************************
|
|
|
|
var assessVendorPayloadImplementors = []string{"AssessVendorPayload"}
|
|
|
|
func (ec *executionContext) _AssessVendorPayload(ctx context.Context, sel ast.SelectionSet, obj *types.AssessVendorPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, assessVendorPayloadImplementors)
|
|
|
|
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("AssessVendorPayload")
|
|
case "vendor":
|
|
out.Values[i] = ec._AssessVendorPayload_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 assetImplementors = []string{"Asset", "Node"}
|
|
|
|
func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, obj *types.Asset) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, assetImplementors)
|
|
|
|
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("Asset")
|
|
case "id":
|
|
out.Values[i] = ec._Asset_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "snapshotId":
|
|
out.Values[i] = ec._Asset_snapshotId(ctx, field, obj)
|
|
case "name":
|
|
out.Values[i] = ec._Asset_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "amount":
|
|
out.Values[i] = ec._Asset_amount(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
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._Asset_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 "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._Asset_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 "criticity":
|
|
out.Values[i] = ec._Asset_criticity(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "assetType":
|
|
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._Asset_assetType(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 "dataTypesStored":
|
|
out.Values[i] = ec._Asset_dataTypesStored(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "organization":
|
|
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._Asset_organization(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._Asset_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Asset_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 assetConnectionImplementors = []string{"AssetConnection"}
|
|
|
|
func (ec *executionContext) _AssetConnection(ctx context.Context, sel ast.SelectionSet, obj *types.AssetConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, assetConnectionImplementors)
|
|
|
|
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("AssetConnection")
|
|
case "totalCount":
|
|
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._AssetConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._AssetConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._AssetConnection_pageInfo(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 assetEdgeImplementors = []string{"AssetEdge"}
|
|
|
|
func (ec *executionContext) _AssetEdge(ctx context.Context, sel ast.SelectionSet, obj *types.AssetEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, assetEdgeImplementors)
|
|
|
|
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("AssetEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._AssetEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._AssetEdge_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 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 auditImplementors = []string{"Audit", "Node"}
|
|
|
|
func (ec *executionContext) _Audit(ctx context.Context, sel ast.SelectionSet, obj *types.Audit) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, auditImplementors)
|
|
|
|
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("Audit")
|
|
case "id":
|
|
out.Values[i] = ec._Audit_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._Audit_name(ctx, field, obj)
|
|
case "organization":
|
|
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._Audit_organization(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 "framework":
|
|
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._Audit_framework(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 "validFrom":
|
|
out.Values[i] = ec._Audit_validFrom(ctx, field, obj)
|
|
case "validUntil":
|
|
out.Values[i] = ec._Audit_validUntil(ctx, field, obj)
|
|
case "report":
|
|
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._Audit_report(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 "reportUrl":
|
|
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._Audit_reportUrl(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 "state":
|
|
out.Values[i] = ec._Audit_state(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._Audit_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 "showOnTrustCenter":
|
|
out.Values[i] = ec._Audit_showOnTrustCenter(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._Audit_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Audit_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 auditConnectionImplementors = []string{"AuditConnection"}
|
|
|
|
func (ec *executionContext) _AuditConnection(ctx context.Context, sel ast.SelectionSet, obj *types.AuditConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, auditConnectionImplementors)
|
|
|
|
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("AuditConnection")
|
|
case "totalCount":
|
|
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._AuditConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._AuditConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._AuditConnection_pageInfo(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 auditEdgeImplementors = []string{"AuditEdge"}
|
|
|
|
func (ec *executionContext) _AuditEdge(ctx context.Context, sel ast.SelectionSet, obj *types.AuditEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, auditEdgeImplementors)
|
|
|
|
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("AuditEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._AuditEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._AuditEdge_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 bulkPublishDocumentVersionsPayloadImplementors = []string{"BulkPublishDocumentVersionsPayload"}
|
|
|
|
func (ec *executionContext) _BulkPublishDocumentVersionsPayload(ctx context.Context, sel ast.SelectionSet, obj *types.BulkPublishDocumentVersionsPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, bulkPublishDocumentVersionsPayloadImplementors)
|
|
|
|
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("BulkPublishDocumentVersionsPayload")
|
|
case "documentVersionEdges":
|
|
out.Values[i] = ec._BulkPublishDocumentVersionsPayload_documentVersionEdges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "documentEdges":
|
|
out.Values[i] = ec._BulkPublishDocumentVersionsPayload_documentEdges(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 bulkRequestSignaturesPayloadImplementors = []string{"BulkRequestSignaturesPayload"}
|
|
|
|
func (ec *executionContext) _BulkRequestSignaturesPayload(ctx context.Context, sel ast.SelectionSet, obj *types.BulkRequestSignaturesPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, bulkRequestSignaturesPayloadImplementors)
|
|
|
|
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("BulkRequestSignaturesPayload")
|
|
case "documentVersionSignatureEdges":
|
|
out.Values[i] = ec._BulkRequestSignaturesPayload_documentVersionSignatureEdges(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 cancelSignatureRequestPayloadImplementors = []string{"CancelSignatureRequestPayload"}
|
|
|
|
func (ec *executionContext) _CancelSignatureRequestPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CancelSignatureRequestPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, cancelSignatureRequestPayloadImplementors)
|
|
|
|
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("CancelSignatureRequestPayload")
|
|
case "deletedDocumentVersionSignatureId":
|
|
out.Values[i] = ec._CancelSignatureRequestPayload_deletedDocumentVersionSignatureId(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 complianceRegistryImplementors = []string{"ComplianceRegistry", "Node"}
|
|
|
|
func (ec *executionContext) _ComplianceRegistry(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceRegistry) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, complianceRegistryImplementors)
|
|
|
|
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("ComplianceRegistry")
|
|
case "id":
|
|
out.Values[i] = ec._ComplianceRegistry_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "snapshotId":
|
|
out.Values[i] = ec._ComplianceRegistry_snapshotId(ctx, field, obj)
|
|
case "sourceId":
|
|
out.Values[i] = ec._ComplianceRegistry_sourceId(ctx, field, obj)
|
|
case "organization":
|
|
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._ComplianceRegistry_organization(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 "referenceId":
|
|
out.Values[i] = ec._ComplianceRegistry_referenceId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "area":
|
|
out.Values[i] = ec._ComplianceRegistry_area(ctx, field, obj)
|
|
case "source":
|
|
out.Values[i] = ec._ComplianceRegistry_source(ctx, field, obj)
|
|
case "requirement":
|
|
out.Values[i] = ec._ComplianceRegistry_requirement(ctx, field, obj)
|
|
case "actionsToBeImplemented":
|
|
out.Values[i] = ec._ComplianceRegistry_actionsToBeImplemented(ctx, field, obj)
|
|
case "regulator":
|
|
out.Values[i] = ec._ComplianceRegistry_regulator(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._ComplianceRegistry_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 "lastReviewDate":
|
|
out.Values[i] = ec._ComplianceRegistry_lastReviewDate(ctx, field, obj)
|
|
case "dueDate":
|
|
out.Values[i] = ec._ComplianceRegistry_dueDate(ctx, field, obj)
|
|
case "status":
|
|
out.Values[i] = ec._ComplianceRegistry_status(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._ComplianceRegistry_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._ComplianceRegistry_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 complianceRegistryConnectionImplementors = []string{"ComplianceRegistryConnection"}
|
|
|
|
func (ec *executionContext) _ComplianceRegistryConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceRegistryConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, complianceRegistryConnectionImplementors)
|
|
|
|
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("ComplianceRegistryConnection")
|
|
case "totalCount":
|
|
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._ComplianceRegistryConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._ComplianceRegistryConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._ComplianceRegistryConnection_pageInfo(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 complianceRegistryEdgeImplementors = []string{"ComplianceRegistryEdge"}
|
|
|
|
func (ec *executionContext) _ComplianceRegistryEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceRegistryEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, complianceRegistryEdgeImplementors)
|
|
|
|
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("ComplianceRegistryEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._ComplianceRegistryEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._ComplianceRegistryEdge_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 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 continualImprovementRegistryImplementors = []string{"ContinualImprovementRegistry", "Node"}
|
|
|
|
func (ec *executionContext) _ContinualImprovementRegistry(ctx context.Context, sel ast.SelectionSet, obj *types.ContinualImprovementRegistry) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, continualImprovementRegistryImplementors)
|
|
|
|
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("ContinualImprovementRegistry")
|
|
case "id":
|
|
out.Values[i] = ec._ContinualImprovementRegistry_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "snapshotId":
|
|
out.Values[i] = ec._ContinualImprovementRegistry_snapshotId(ctx, field, obj)
|
|
case "sourceId":
|
|
out.Values[i] = ec._ContinualImprovementRegistry_sourceId(ctx, field, obj)
|
|
case "organization":
|
|
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._ContinualImprovementRegistry_organization(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 "referenceId":
|
|
out.Values[i] = ec._ContinualImprovementRegistry_referenceId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec._ContinualImprovementRegistry_description(ctx, field, obj)
|
|
case "source":
|
|
out.Values[i] = ec._ContinualImprovementRegistry_source(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._ContinualImprovementRegistry_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 "targetDate":
|
|
out.Values[i] = ec._ContinualImprovementRegistry_targetDate(ctx, field, obj)
|
|
case "status":
|
|
out.Values[i] = ec._ContinualImprovementRegistry_status(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "priority":
|
|
out.Values[i] = ec._ContinualImprovementRegistry_priority(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._ContinualImprovementRegistry_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._ContinualImprovementRegistry_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 continualImprovementRegistryConnectionImplementors = []string{"ContinualImprovementRegistryConnection"}
|
|
|
|
func (ec *executionContext) _ContinualImprovementRegistryConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ContinualImprovementRegistryConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, continualImprovementRegistryConnectionImplementors)
|
|
|
|
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("ContinualImprovementRegistryConnection")
|
|
case "totalCount":
|
|
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._ContinualImprovementRegistryConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._ContinualImprovementRegistryConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._ContinualImprovementRegistryConnection_pageInfo(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 continualImprovementRegistryEdgeImplementors = []string{"ContinualImprovementRegistryEdge"}
|
|
|
|
func (ec *executionContext) _ContinualImprovementRegistryEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ContinualImprovementRegistryEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, continualImprovementRegistryEdgeImplementors)
|
|
|
|
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("ContinualImprovementRegistryEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._ContinualImprovementRegistryEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._ContinualImprovementRegistryEdge_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 "sectionTitle":
|
|
out.Values[i] = ec._Control_sectionTitle(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 "status":
|
|
out.Values[i] = ec._Control_status(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "exclusionJustification":
|
|
out.Values[i] = ec._Control_exclusionJustification(ctx, field, obj)
|
|
case "framework":
|
|
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_framework(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 "measures":
|
|
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_measures(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 "documents":
|
|
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_documents(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 "audits":
|
|
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_audits(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 "snapshots":
|
|
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_snapshots(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 "totalCount":
|
|
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._ControlConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._ControlConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._ControlConnection_pageInfo(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 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 createAssetPayloadImplementors = []string{"CreateAssetPayload"}
|
|
|
|
func (ec *executionContext) _CreateAssetPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateAssetPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createAssetPayloadImplementors)
|
|
|
|
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("CreateAssetPayload")
|
|
case "assetEdge":
|
|
out.Values[i] = ec._CreateAssetPayload_assetEdge(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 createAuditPayloadImplementors = []string{"CreateAuditPayload"}
|
|
|
|
func (ec *executionContext) _CreateAuditPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateAuditPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createAuditPayloadImplementors)
|
|
|
|
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("CreateAuditPayload")
|
|
case "auditEdge":
|
|
out.Values[i] = ec._CreateAuditPayload_auditEdge(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 createComplianceRegistryPayloadImplementors = []string{"CreateComplianceRegistryPayload"}
|
|
|
|
func (ec *executionContext) _CreateComplianceRegistryPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateComplianceRegistryPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createComplianceRegistryPayloadImplementors)
|
|
|
|
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("CreateComplianceRegistryPayload")
|
|
case "complianceRegistryEdge":
|
|
out.Values[i] = ec._CreateComplianceRegistryPayload_complianceRegistryEdge(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 createContinualImprovementRegistryPayloadImplementors = []string{"CreateContinualImprovementRegistryPayload"}
|
|
|
|
func (ec *executionContext) _CreateContinualImprovementRegistryPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateContinualImprovementRegistryPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createContinualImprovementRegistryPayloadImplementors)
|
|
|
|
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("CreateContinualImprovementRegistryPayload")
|
|
case "continualImprovementRegistryEdge":
|
|
out.Values[i] = ec._CreateContinualImprovementRegistryPayload_continualImprovementRegistryEdge(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 createControlAuditMappingPayloadImplementors = []string{"CreateControlAuditMappingPayload"}
|
|
|
|
func (ec *executionContext) _CreateControlAuditMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateControlAuditMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createControlAuditMappingPayloadImplementors)
|
|
|
|
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("CreateControlAuditMappingPayload")
|
|
case "controlEdge":
|
|
out.Values[i] = ec._CreateControlAuditMappingPayload_controlEdge(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "auditEdge":
|
|
out.Values[i] = ec._CreateControlAuditMappingPayload_auditEdge(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 createControlDocumentMappingPayloadImplementors = []string{"CreateControlDocumentMappingPayload"}
|
|
|
|
func (ec *executionContext) _CreateControlDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateControlDocumentMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createControlDocumentMappingPayloadImplementors)
|
|
|
|
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("CreateControlDocumentMappingPayload")
|
|
case "controlEdge":
|
|
out.Values[i] = ec._CreateControlDocumentMappingPayload_controlEdge(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "documentEdge":
|
|
out.Values[i] = ec._CreateControlDocumentMappingPayload_documentEdge(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 createControlMeasureMappingPayloadImplementors = []string{"CreateControlMeasureMappingPayload"}
|
|
|
|
func (ec *executionContext) _CreateControlMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateControlMeasureMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createControlMeasureMappingPayloadImplementors)
|
|
|
|
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("CreateControlMeasureMappingPayload")
|
|
case "controlEdge":
|
|
out.Values[i] = ec._CreateControlMeasureMappingPayload_controlEdge(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "measureEdge":
|
|
out.Values[i] = ec._CreateControlMeasureMappingPayload_measureEdge(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 createControlPayloadImplementors = []string{"CreateControlPayload"}
|
|
|
|
func (ec *executionContext) _CreateControlPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateControlPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createControlPayloadImplementors)
|
|
|
|
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("CreateControlPayload")
|
|
case "controlEdge":
|
|
out.Values[i] = ec._CreateControlPayload_controlEdge(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 createControlSnapshotMappingPayloadImplementors = []string{"CreateControlSnapshotMappingPayload"}
|
|
|
|
func (ec *executionContext) _CreateControlSnapshotMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateControlSnapshotMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createControlSnapshotMappingPayloadImplementors)
|
|
|
|
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("CreateControlSnapshotMappingPayload")
|
|
case "controlEdge":
|
|
out.Values[i] = ec._CreateControlSnapshotMappingPayload_controlEdge(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "snapshotEdge":
|
|
out.Values[i] = ec._CreateControlSnapshotMappingPayload_snapshotEdge(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 createDatumPayloadImplementors = []string{"CreateDatumPayload"}
|
|
|
|
func (ec *executionContext) _CreateDatumPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateDatumPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createDatumPayloadImplementors)
|
|
|
|
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("CreateDatumPayload")
|
|
case "datumEdge":
|
|
out.Values[i] = ec._CreateDatumPayload_datumEdge(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 createDocumentPayloadImplementors = []string{"CreateDocumentPayload"}
|
|
|
|
func (ec *executionContext) _CreateDocumentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateDocumentPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createDocumentPayloadImplementors)
|
|
|
|
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("CreateDocumentPayload")
|
|
case "documentEdge":
|
|
out.Values[i] = ec._CreateDocumentPayload_documentEdge(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "documentVersionEdge":
|
|
out.Values[i] = ec._CreateDocumentPayload_documentVersionEdge(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 createDraftDocumentVersionPayloadImplementors = []string{"CreateDraftDocumentVersionPayload"}
|
|
|
|
func (ec *executionContext) _CreateDraftDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateDraftDocumentVersionPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createDraftDocumentVersionPayloadImplementors)
|
|
|
|
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("CreateDraftDocumentVersionPayload")
|
|
case "documentVersionEdge":
|
|
out.Values[i] = ec._CreateDraftDocumentVersionPayload_documentVersionEdge(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 createMeasurePayloadImplementors = []string{"CreateMeasurePayload"}
|
|
|
|
func (ec *executionContext) _CreateMeasurePayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateMeasurePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createMeasurePayloadImplementors)
|
|
|
|
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("CreateMeasurePayload")
|
|
case "measureEdge":
|
|
out.Values[i] = ec._CreateMeasurePayload_measureEdge(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 createNonconformityRegistryPayloadImplementors = []string{"CreateNonconformityRegistryPayload"}
|
|
|
|
func (ec *executionContext) _CreateNonconformityRegistryPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateNonconformityRegistryPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createNonconformityRegistryPayloadImplementors)
|
|
|
|
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("CreateNonconformityRegistryPayload")
|
|
case "nonconformityRegistryEdge":
|
|
out.Values[i] = ec._CreateNonconformityRegistryPayload_nonconformityRegistryEdge(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 createProcessingActivityRegistryPayloadImplementors = []string{"CreateProcessingActivityRegistryPayload"}
|
|
|
|
func (ec *executionContext) _CreateProcessingActivityRegistryPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateProcessingActivityRegistryPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createProcessingActivityRegistryPayloadImplementors)
|
|
|
|
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("CreateProcessingActivityRegistryPayload")
|
|
case "processingActivityRegistryEdge":
|
|
out.Values[i] = ec._CreateProcessingActivityRegistryPayload_processingActivityRegistryEdge(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 createRiskDocumentMappingPayloadImplementors = []string{"CreateRiskDocumentMappingPayload"}
|
|
|
|
func (ec *executionContext) _CreateRiskDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateRiskDocumentMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createRiskDocumentMappingPayloadImplementors)
|
|
|
|
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("CreateRiskDocumentMappingPayload")
|
|
case "riskEdge":
|
|
out.Values[i] = ec._CreateRiskDocumentMappingPayload_riskEdge(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "documentEdge":
|
|
out.Values[i] = ec._CreateRiskDocumentMappingPayload_documentEdge(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 createRiskMeasureMappingPayloadImplementors = []string{"CreateRiskMeasureMappingPayload"}
|
|
|
|
func (ec *executionContext) _CreateRiskMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateRiskMeasureMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createRiskMeasureMappingPayloadImplementors)
|
|
|
|
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("CreateRiskMeasureMappingPayload")
|
|
case "riskEdge":
|
|
out.Values[i] = ec._CreateRiskMeasureMappingPayload_riskEdge(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "measureEdge":
|
|
out.Values[i] = ec._CreateRiskMeasureMappingPayload_measureEdge(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 createSnapshotPayloadImplementors = []string{"CreateSnapshotPayload"}
|
|
|
|
func (ec *executionContext) _CreateSnapshotPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateSnapshotPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createSnapshotPayloadImplementors)
|
|
|
|
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("CreateSnapshotPayload")
|
|
case "snapshotEdge":
|
|
out.Values[i] = ec._CreateSnapshotPayload_snapshotEdge(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 createTrustCenterAccessPayloadImplementors = []string{"CreateTrustCenterAccessPayload"}
|
|
|
|
func (ec *executionContext) _CreateTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateTrustCenterAccessPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createTrustCenterAccessPayloadImplementors)
|
|
|
|
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("CreateTrustCenterAccessPayload")
|
|
case "trustCenterAccessEdge":
|
|
out.Values[i] = ec._CreateTrustCenterAccessPayload_trustCenterAccessEdge(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 createVendorContactPayloadImplementors = []string{"CreateVendorContactPayload"}
|
|
|
|
func (ec *executionContext) _CreateVendorContactPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateVendorContactPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createVendorContactPayloadImplementors)
|
|
|
|
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("CreateVendorContactPayload")
|
|
case "vendorContactEdge":
|
|
out.Values[i] = ec._CreateVendorContactPayload_vendorContactEdge(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 createVendorServicePayloadImplementors = []string{"CreateVendorServicePayload"}
|
|
|
|
func (ec *executionContext) _CreateVendorServicePayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateVendorServicePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createVendorServicePayloadImplementors)
|
|
|
|
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("CreateVendorServicePayload")
|
|
case "vendorServiceEdge":
|
|
out.Values[i] = ec._CreateVendorServicePayload_vendorServiceEdge(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 datumImplementors = []string{"Datum", "Node"}
|
|
|
|
func (ec *executionContext) _Datum(ctx context.Context, sel ast.SelectionSet, obj *types.Datum) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, datumImplementors)
|
|
|
|
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("Datum")
|
|
case "id":
|
|
out.Values[i] = ec._Datum_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "snapshotId":
|
|
out.Values[i] = ec._Datum_snapshotId(ctx, field, obj)
|
|
case "name":
|
|
out.Values[i] = ec._Datum_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "dataClassification":
|
|
out.Values[i] = ec._Datum_dataClassification(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
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._Datum_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 "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._Datum_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 "organization":
|
|
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._Datum_organization(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._Datum_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Datum_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 datumConnectionImplementors = []string{"DatumConnection"}
|
|
|
|
func (ec *executionContext) _DatumConnection(ctx context.Context, sel ast.SelectionSet, obj *types.DatumConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, datumConnectionImplementors)
|
|
|
|
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("DatumConnection")
|
|
case "totalCount":
|
|
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._DatumConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._DatumConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._DatumConnection_pageInfo(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 datumEdgeImplementors = []string{"DatumEdge"}
|
|
|
|
func (ec *executionContext) _DatumEdge(ctx context.Context, sel ast.SelectionSet, obj *types.DatumEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, datumEdgeImplementors)
|
|
|
|
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("DatumEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._DatumEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._DatumEdge_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 deleteAssetPayloadImplementors = []string{"DeleteAssetPayload"}
|
|
|
|
func (ec *executionContext) _DeleteAssetPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteAssetPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteAssetPayloadImplementors)
|
|
|
|
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("DeleteAssetPayload")
|
|
case "deletedAssetId":
|
|
out.Values[i] = ec._DeleteAssetPayload_deletedAssetId(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 deleteAuditPayloadImplementors = []string{"DeleteAuditPayload"}
|
|
|
|
func (ec *executionContext) _DeleteAuditPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteAuditPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteAuditPayloadImplementors)
|
|
|
|
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("DeleteAuditPayload")
|
|
case "deletedAuditId":
|
|
out.Values[i] = ec._DeleteAuditPayload_deletedAuditId(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 deleteAuditReportPayloadImplementors = []string{"DeleteAuditReportPayload"}
|
|
|
|
func (ec *executionContext) _DeleteAuditReportPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteAuditReportPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteAuditReportPayloadImplementors)
|
|
|
|
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("DeleteAuditReportPayload")
|
|
case "audit":
|
|
out.Values[i] = ec._DeleteAuditReportPayload_audit(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 deleteComplianceRegistryPayloadImplementors = []string{"DeleteComplianceRegistryPayload"}
|
|
|
|
func (ec *executionContext) _DeleteComplianceRegistryPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteComplianceRegistryPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteComplianceRegistryPayloadImplementors)
|
|
|
|
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("DeleteComplianceRegistryPayload")
|
|
case "deletedComplianceRegistryId":
|
|
out.Values[i] = ec._DeleteComplianceRegistryPayload_deletedComplianceRegistryId(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 deleteContinualImprovementRegistryPayloadImplementors = []string{"DeleteContinualImprovementRegistryPayload"}
|
|
|
|
func (ec *executionContext) _DeleteContinualImprovementRegistryPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteContinualImprovementRegistryPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteContinualImprovementRegistryPayloadImplementors)
|
|
|
|
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("DeleteContinualImprovementRegistryPayload")
|
|
case "deletedContinualImprovementRegistryId":
|
|
out.Values[i] = ec._DeleteContinualImprovementRegistryPayload_deletedContinualImprovementRegistryId(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 deleteControlAuditMappingPayloadImplementors = []string{"DeleteControlAuditMappingPayload"}
|
|
|
|
func (ec *executionContext) _DeleteControlAuditMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteControlAuditMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteControlAuditMappingPayloadImplementors)
|
|
|
|
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("DeleteControlAuditMappingPayload")
|
|
case "deletedControlId":
|
|
out.Values[i] = ec._DeleteControlAuditMappingPayload_deletedControlId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deletedAuditId":
|
|
out.Values[i] = ec._DeleteControlAuditMappingPayload_deletedAuditId(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 deleteControlDocumentMappingPayloadImplementors = []string{"DeleteControlDocumentMappingPayload"}
|
|
|
|
func (ec *executionContext) _DeleteControlDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteControlDocumentMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteControlDocumentMappingPayloadImplementors)
|
|
|
|
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("DeleteControlDocumentMappingPayload")
|
|
case "deletedControlId":
|
|
out.Values[i] = ec._DeleteControlDocumentMappingPayload_deletedControlId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deletedDocumentId":
|
|
out.Values[i] = ec._DeleteControlDocumentMappingPayload_deletedDocumentId(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 deleteControlMeasureMappingPayloadImplementors = []string{"DeleteControlMeasureMappingPayload"}
|
|
|
|
func (ec *executionContext) _DeleteControlMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteControlMeasureMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteControlMeasureMappingPayloadImplementors)
|
|
|
|
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("DeleteControlMeasureMappingPayload")
|
|
case "deletedControlId":
|
|
out.Values[i] = ec._DeleteControlMeasureMappingPayload_deletedControlId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deletedMeasureId":
|
|
out.Values[i] = ec._DeleteControlMeasureMappingPayload_deletedMeasureId(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 deleteControlPayloadImplementors = []string{"DeleteControlPayload"}
|
|
|
|
func (ec *executionContext) _DeleteControlPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteControlPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteControlPayloadImplementors)
|
|
|
|
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("DeleteControlPayload")
|
|
case "deletedControlId":
|
|
out.Values[i] = ec._DeleteControlPayload_deletedControlId(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 deleteControlSnapshotMappingPayloadImplementors = []string{"DeleteControlSnapshotMappingPayload"}
|
|
|
|
func (ec *executionContext) _DeleteControlSnapshotMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteControlSnapshotMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteControlSnapshotMappingPayloadImplementors)
|
|
|
|
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("DeleteControlSnapshotMappingPayload")
|
|
case "deletedControlId":
|
|
out.Values[i] = ec._DeleteControlSnapshotMappingPayload_deletedControlId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deletedSnapshotId":
|
|
out.Values[i] = ec._DeleteControlSnapshotMappingPayload_deletedSnapshotId(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 deleteDatumPayloadImplementors = []string{"DeleteDatumPayload"}
|
|
|
|
func (ec *executionContext) _DeleteDatumPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteDatumPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteDatumPayloadImplementors)
|
|
|
|
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("DeleteDatumPayload")
|
|
case "deletedDatumId":
|
|
out.Values[i] = ec._DeleteDatumPayload_deletedDatumId(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 deleteDocumentPayloadImplementors = []string{"DeleteDocumentPayload"}
|
|
|
|
func (ec *executionContext) _DeleteDocumentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteDocumentPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteDocumentPayloadImplementors)
|
|
|
|
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("DeleteDocumentPayload")
|
|
case "deletedDocumentId":
|
|
out.Values[i] = ec._DeleteDocumentPayload_deletedDocumentId(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 deleteDraftDocumentVersionPayloadImplementors = []string{"DeleteDraftDocumentVersionPayload"}
|
|
|
|
func (ec *executionContext) _DeleteDraftDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteDraftDocumentVersionPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteDraftDocumentVersionPayloadImplementors)
|
|
|
|
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("DeleteDraftDocumentVersionPayload")
|
|
case "deletedDocumentVersionId":
|
|
out.Values[i] = ec._DeleteDraftDocumentVersionPayload_deletedDocumentVersionId(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 deleteMeasurePayloadImplementors = []string{"DeleteMeasurePayload"}
|
|
|
|
func (ec *executionContext) _DeleteMeasurePayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteMeasurePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteMeasurePayloadImplementors)
|
|
|
|
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("DeleteMeasurePayload")
|
|
case "deletedMeasureId":
|
|
out.Values[i] = ec._DeleteMeasurePayload_deletedMeasureId(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 deleteNonconformityRegistryPayloadImplementors = []string{"DeleteNonconformityRegistryPayload"}
|
|
|
|
func (ec *executionContext) _DeleteNonconformityRegistryPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteNonconformityRegistryPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteNonconformityRegistryPayloadImplementors)
|
|
|
|
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("DeleteNonconformityRegistryPayload")
|
|
case "deletedNonconformityRegistryId":
|
|
out.Values[i] = ec._DeleteNonconformityRegistryPayload_deletedNonconformityRegistryId(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 deleteProcessingActivityRegistryPayloadImplementors = []string{"DeleteProcessingActivityRegistryPayload"}
|
|
|
|
func (ec *executionContext) _DeleteProcessingActivityRegistryPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteProcessingActivityRegistryPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteProcessingActivityRegistryPayloadImplementors)
|
|
|
|
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("DeleteProcessingActivityRegistryPayload")
|
|
case "deletedProcessingActivityRegistryId":
|
|
out.Values[i] = ec._DeleteProcessingActivityRegistryPayload_deletedProcessingActivityRegistryId(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 deleteRiskDocumentMappingPayloadImplementors = []string{"DeleteRiskDocumentMappingPayload"}
|
|
|
|
func (ec *executionContext) _DeleteRiskDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteRiskDocumentMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteRiskDocumentMappingPayloadImplementors)
|
|
|
|
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("DeleteRiskDocumentMappingPayload")
|
|
case "deletedRiskId":
|
|
out.Values[i] = ec._DeleteRiskDocumentMappingPayload_deletedRiskId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deletedDocumentId":
|
|
out.Values[i] = ec._DeleteRiskDocumentMappingPayload_deletedDocumentId(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 deleteRiskMeasureMappingPayloadImplementors = []string{"DeleteRiskMeasureMappingPayload"}
|
|
|
|
func (ec *executionContext) _DeleteRiskMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteRiskMeasureMappingPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteRiskMeasureMappingPayloadImplementors)
|
|
|
|
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("DeleteRiskMeasureMappingPayload")
|
|
case "deletedMeasureId":
|
|
out.Values[i] = ec._DeleteRiskMeasureMappingPayload_deletedMeasureId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deletedRiskId":
|
|
out.Values[i] = ec._DeleteRiskMeasureMappingPayload_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 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 deleteSnapshotPayloadImplementors = []string{"DeleteSnapshotPayload"}
|
|
|
|
func (ec *executionContext) _DeleteSnapshotPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteSnapshotPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteSnapshotPayloadImplementors)
|
|
|
|
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("DeleteSnapshotPayload")
|
|
case "deletedSnapshotId":
|
|
out.Values[i] = ec._DeleteSnapshotPayload_deletedSnapshotId(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 deleteTrustCenterAccessPayloadImplementors = []string{"DeleteTrustCenterAccessPayload"}
|
|
|
|
func (ec *executionContext) _DeleteTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteTrustCenterAccessPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteTrustCenterAccessPayloadImplementors)
|
|
|
|
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("DeleteTrustCenterAccessPayload")
|
|
case "deletedTrustCenterAccessId":
|
|
out.Values[i] = ec._DeleteTrustCenterAccessPayload_deletedTrustCenterAccessId(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 deleteVendorBusinessAssociateAgreementPayloadImplementors = []string{"DeleteVendorBusinessAssociateAgreementPayload"}
|
|
|
|
func (ec *executionContext) _DeleteVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteVendorBusinessAssociateAgreementPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteVendorBusinessAssociateAgreementPayloadImplementors)
|
|
|
|
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("DeleteVendorBusinessAssociateAgreementPayload")
|
|
case "deletedVendorId":
|
|
out.Values[i] = ec._DeleteVendorBusinessAssociateAgreementPayload_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 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 deleteVendorContactPayloadImplementors = []string{"DeleteVendorContactPayload"}
|
|
|
|
func (ec *executionContext) _DeleteVendorContactPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteVendorContactPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteVendorContactPayloadImplementors)
|
|
|
|
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("DeleteVendorContactPayload")
|
|
case "deletedVendorContactId":
|
|
out.Values[i] = ec._DeleteVendorContactPayload_deletedVendorContactId(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 deleteVendorDataPrivacyAgreementPayloadImplementors = []string{"DeleteVendorDataPrivacyAgreementPayload"}
|
|
|
|
func (ec *executionContext) _DeleteVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteVendorDataPrivacyAgreementPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteVendorDataPrivacyAgreementPayloadImplementors)
|
|
|
|
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("DeleteVendorDataPrivacyAgreementPayload")
|
|
case "deletedVendorId":
|
|
out.Values[i] = ec._DeleteVendorDataPrivacyAgreementPayload_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 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 deleteVendorServicePayloadImplementors = []string{"DeleteVendorServicePayload"}
|
|
|
|
func (ec *executionContext) _DeleteVendorServicePayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteVendorServicePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteVendorServicePayloadImplementors)
|
|
|
|
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("DeleteVendorServicePayload")
|
|
case "deletedVendorServiceId":
|
|
out.Values[i] = ec._DeleteVendorServicePayload_deletedVendorServiceId(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 documentImplementors = []string{"Document", "Node"}
|
|
|
|
func (ec *executionContext) _Document(ctx context.Context, sel ast.SelectionSet, obj *types.Document) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, documentImplementors)
|
|
|
|
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("Document")
|
|
case "id":
|
|
out.Values[i] = ec._Document_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "title":
|
|
out.Values[i] = ec._Document_title(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec._Document_description(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "documentType":
|
|
out.Values[i] = ec._Document_documentType(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "currentPublishedVersion":
|
|
out.Values[i] = ec._Document_currentPublishedVersion(ctx, field, obj)
|
|
case "showOnTrustCenter":
|
|
out.Values[i] = ec._Document_showOnTrustCenter(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
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._Document_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 "organization":
|
|
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._Document_organization(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 "versions":
|
|
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._Document_versions(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._Document_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._Document_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Document_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 documentConnectionImplementors = []string{"DocumentConnection"}
|
|
|
|
func (ec *executionContext) _DocumentConnection(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, documentConnectionImplementors)
|
|
|
|
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("DocumentConnection")
|
|
case "totalCount":
|
|
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._DocumentConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._DocumentConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._DocumentConnection_pageInfo(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 documentEdgeImplementors = []string{"DocumentEdge"}
|
|
|
|
func (ec *executionContext) _DocumentEdge(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, documentEdgeImplementors)
|
|
|
|
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("DocumentEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._DocumentEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._DocumentEdge_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 documentVersionImplementors = []string{"DocumentVersion", "Node"}
|
|
|
|
func (ec *executionContext) _DocumentVersion(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentVersion) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, documentVersionImplementors)
|
|
|
|
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("DocumentVersion")
|
|
case "id":
|
|
out.Values[i] = ec._DocumentVersion_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "document":
|
|
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._DocumentVersion_document(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 "status":
|
|
out.Values[i] = ec._DocumentVersion_status(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "version":
|
|
out.Values[i] = ec._DocumentVersion_version(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "content":
|
|
out.Values[i] = ec._DocumentVersion_content(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "changelog":
|
|
out.Values[i] = ec._DocumentVersion_changelog(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "title":
|
|
out.Values[i] = ec._DocumentVersion_title(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
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._DocumentVersion_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 "signatures":
|
|
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._DocumentVersion_signatures(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 "publishedBy":
|
|
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._DocumentVersion_publishedBy(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 "publishedAt":
|
|
out.Values[i] = ec._DocumentVersion_publishedAt(ctx, field, obj)
|
|
case "createdAt":
|
|
out.Values[i] = ec._DocumentVersion_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._DocumentVersion_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 documentVersionConnectionImplementors = []string{"DocumentVersionConnection"}
|
|
|
|
func (ec *executionContext) _DocumentVersionConnection(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentVersionConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, documentVersionConnectionImplementors)
|
|
|
|
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("DocumentVersionConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._DocumentVersionConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._DocumentVersionConnection_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 documentVersionEdgeImplementors = []string{"DocumentVersionEdge"}
|
|
|
|
func (ec *executionContext) _DocumentVersionEdge(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentVersionEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, documentVersionEdgeImplementors)
|
|
|
|
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("DocumentVersionEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._DocumentVersionEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._DocumentVersionEdge_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 documentVersionSignatureImplementors = []string{"DocumentVersionSignature", "Node"}
|
|
|
|
func (ec *executionContext) _DocumentVersionSignature(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentVersionSignature) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, documentVersionSignatureImplementors)
|
|
|
|
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("DocumentVersionSignature")
|
|
case "id":
|
|
out.Values[i] = ec._DocumentVersionSignature_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "documentVersion":
|
|
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._DocumentVersionSignature_documentVersion(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 "state":
|
|
out.Values[i] = ec._DocumentVersionSignature_state(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "signedBy":
|
|
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._DocumentVersionSignature_signedBy(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 "signedAt":
|
|
out.Values[i] = ec._DocumentVersionSignature_signedAt(ctx, field, obj)
|
|
case "requestedAt":
|
|
out.Values[i] = ec._DocumentVersionSignature_requestedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "requestedBy":
|
|
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._DocumentVersionSignature_requestedBy(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._DocumentVersionSignature_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._DocumentVersionSignature_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 documentVersionSignatureConnectionImplementors = []string{"DocumentVersionSignatureConnection"}
|
|
|
|
func (ec *executionContext) _DocumentVersionSignatureConnection(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentVersionSignatureConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, documentVersionSignatureConnectionImplementors)
|
|
|
|
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("DocumentVersionSignatureConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._DocumentVersionSignatureConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._DocumentVersionSignatureConnection_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 documentVersionSignatureEdgeImplementors = []string{"DocumentVersionSignatureEdge"}
|
|
|
|
func (ec *executionContext) _DocumentVersionSignatureEdge(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentVersionSignatureEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, documentVersionSignatureEdgeImplementors)
|
|
|
|
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("DocumentVersionSignatureEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._DocumentVersionSignatureEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._DocumentVersionSignatureEdge_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 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 "task":
|
|
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_task(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 "measure":
|
|
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._Evidence_measure(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._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 "totalCount":
|
|
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._EvidenceConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._EvidenceConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._EvidenceConnection_pageInfo(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 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 exportDocumentVersionPDFPayloadImplementors = []string{"ExportDocumentVersionPDFPayload"}
|
|
|
|
func (ec *executionContext) _ExportDocumentVersionPDFPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ExportDocumentVersionPDFPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, exportDocumentVersionPDFPayloadImplementors)
|
|
|
|
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("ExportDocumentVersionPDFPayload")
|
|
case "data":
|
|
out.Values[i] = ec._ExportDocumentVersionPDFPayload_data(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 "organization":
|
|
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_organization(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._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 "totalCount":
|
|
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._FrameworkConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._FrameworkConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._FrameworkConnection_pageInfo(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 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 generateDocumentChangelogPayloadImplementors = []string{"GenerateDocumentChangelogPayload"}
|
|
|
|
func (ec *executionContext) _GenerateDocumentChangelogPayload(ctx context.Context, sel ast.SelectionSet, obj *types.GenerateDocumentChangelogPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, generateDocumentChangelogPayloadImplementors)
|
|
|
|
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("GenerateDocumentChangelogPayload")
|
|
case "changelog":
|
|
out.Values[i] = ec._GenerateDocumentChangelogPayload_changelog(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 generateFrameworkStateOfApplicabilityPayloadImplementors = []string{"GenerateFrameworkStateOfApplicabilityPayload"}
|
|
|
|
func (ec *executionContext) _GenerateFrameworkStateOfApplicabilityPayload(ctx context.Context, sel ast.SelectionSet, obj *types.GenerateFrameworkStateOfApplicabilityPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, generateFrameworkStateOfApplicabilityPayloadImplementors)
|
|
|
|
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("GenerateFrameworkStateOfApplicabilityPayload")
|
|
case "data":
|
|
out.Values[i] = ec._GenerateFrameworkStateOfApplicabilityPayload_data(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 importMeasurePayloadImplementors = []string{"ImportMeasurePayload"}
|
|
|
|
func (ec *executionContext) _ImportMeasurePayload(ctx context.Context, sel ast.SelectionSet, obj *types.ImportMeasurePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, importMeasurePayloadImplementors)
|
|
|
|
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("ImportMeasurePayload")
|
|
case "measureEdges":
|
|
out.Values[i] = ec._ImportMeasurePayload_measureEdges(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 measureImplementors = []string{"Measure", "Node"}
|
|
|
|
func (ec *executionContext) _Measure(ctx context.Context, sel ast.SelectionSet, obj *types.Measure) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, measureImplementors)
|
|
|
|
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("Measure")
|
|
case "id":
|
|
out.Values[i] = ec._Measure_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "category":
|
|
out.Values[i] = ec._Measure_category(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._Measure_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec._Measure_description(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "state":
|
|
out.Values[i] = ec._Measure_state(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
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._Measure_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 "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._Measure_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._Measure_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._Measure_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._Measure_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Measure_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 measureConnectionImplementors = []string{"MeasureConnection"}
|
|
|
|
func (ec *executionContext) _MeasureConnection(ctx context.Context, sel ast.SelectionSet, obj *types.MeasureConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, measureConnectionImplementors)
|
|
|
|
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("MeasureConnection")
|
|
case "totalCount":
|
|
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._MeasureConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._MeasureConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._MeasureConnection_pageInfo(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 measureEdgeImplementors = []string{"MeasureEdge"}
|
|
|
|
func (ec *executionContext) _MeasureEdge(ctx context.Context, sel ast.SelectionSet, obj *types.MeasureEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, measureEdgeImplementors)
|
|
|
|
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("MeasureEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._MeasureEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._MeasureEdge_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 "updateTrustCenter":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateTrustCenter(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createTrustCenterAccess":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createTrustCenterAccess(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateTrustCenterAccess":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateTrustCenterAccess(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteTrustCenterAccess":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteTrustCenterAccess(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 "createVendorContact":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createVendorContact(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateVendorContact":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateVendorContact(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteVendorContact":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteVendorContact(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createVendorService":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createVendorService(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateVendorService":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateVendorService(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteVendorService":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteVendorService(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 "generateFrameworkStateOfApplicability":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_generateFrameworkStateOfApplicability(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createControl":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createControl(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateControl":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateControl(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteControl":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteControl(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createMeasure":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createMeasure(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateMeasure":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateMeasure(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "importMeasure":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_importMeasure(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteMeasure":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteMeasure(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createControlMeasureMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createControlMeasureMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createControlDocumentMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createControlDocumentMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteControlMeasureMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteControlMeasureMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteControlDocumentMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteControlDocumentMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createControlAuditMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createControlAuditMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteControlAuditMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteControlAuditMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createControlSnapshotMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createControlSnapshotMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteControlSnapshotMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteControlSnapshotMapping(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 "createRiskMeasureMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createRiskMeasureMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteRiskMeasureMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteRiskMeasureMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createRiskDocumentMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createRiskDocumentMapping(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteRiskDocumentMapping":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteRiskDocumentMapping(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 "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 "uploadTaskEvidence":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_uploadTaskEvidence(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "uploadMeasureEvidence":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_uploadMeasureEvidence(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 "uploadVendorBusinessAssociateAgreement":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_uploadVendorBusinessAssociateAgreement(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateVendorBusinessAssociateAgreement":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateVendorBusinessAssociateAgreement(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteVendorBusinessAssociateAgreement":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteVendorBusinessAssociateAgreement(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "uploadVendorDataPrivacyAgreement":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_uploadVendorDataPrivacyAgreement(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateVendorDataPrivacyAgreement":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateVendorDataPrivacyAgreement(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteVendorDataPrivacyAgreement":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteVendorDataPrivacyAgreement(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createDocument":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createDocument(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateDocument":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateDocument(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteDocument":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteDocument(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "publishDocumentVersion":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_publishDocumentVersion(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "bulkPublishDocumentVersions":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_bulkPublishDocumentVersions(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "generateDocumentChangelog":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_generateDocumentChangelog(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createDraftDocumentVersion":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createDraftDocumentVersion(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteDraftDocumentVersion":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteDraftDocumentVersion(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateDocumentVersion":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateDocumentVersion(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "requestSignature":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_requestSignature(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "bulkRequestSignatures":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_bulkRequestSignatures(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "sendSigningNotifications":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_sendSigningNotifications(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "cancelSignatureRequest":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_cancelSignatureRequest(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "exportDocumentVersionPDF":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_exportDocumentVersionPDF(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++
|
|
}
|
|
case "assessVendor":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_assessVendor(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createAsset":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createAsset(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateAsset":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateAsset(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteAsset":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteAsset(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createDatum":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createDatum(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateDatum":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateDatum(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteDatum":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteDatum(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createAudit":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createAudit(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateAudit":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateAudit(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteAudit":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteAudit(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "uploadAuditReport":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_uploadAuditReport(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteAuditReport":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteAuditReport(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createNonconformityRegistry":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createNonconformityRegistry(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateNonconformityRegistry":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateNonconformityRegistry(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteNonconformityRegistry":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteNonconformityRegistry(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createComplianceRegistry":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createComplianceRegistry(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateComplianceRegistry":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateComplianceRegistry(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteComplianceRegistry":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteComplianceRegistry(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createContinualImprovementRegistry":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createContinualImprovementRegistry(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateContinualImprovementRegistry":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateContinualImprovementRegistry(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteContinualImprovementRegistry":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteContinualImprovementRegistry(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createProcessingActivityRegistry":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createProcessingActivityRegistry(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateProcessingActivityRegistry":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateProcessingActivityRegistry(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteProcessingActivityRegistry":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteProcessingActivityRegistry(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createSnapshot":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createSnapshot(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deleteSnapshot":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteSnapshot(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 nonconformityRegistryImplementors = []string{"NonconformityRegistry", "Node"}
|
|
|
|
func (ec *executionContext) _NonconformityRegistry(ctx context.Context, sel ast.SelectionSet, obj *types.NonconformityRegistry) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, nonconformityRegistryImplementors)
|
|
|
|
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("NonconformityRegistry")
|
|
case "id":
|
|
out.Values[i] = ec._NonconformityRegistry_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "snapshotId":
|
|
out.Values[i] = ec._NonconformityRegistry_snapshotId(ctx, field, obj)
|
|
case "organization":
|
|
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._NonconformityRegistry_organization(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 "referenceId":
|
|
out.Values[i] = ec._NonconformityRegistry_referenceId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec._NonconformityRegistry_description(ctx, field, obj)
|
|
case "audit":
|
|
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._NonconformityRegistry_audit(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 "dateIdentified":
|
|
out.Values[i] = ec._NonconformityRegistry_dateIdentified(ctx, field, obj)
|
|
case "rootCause":
|
|
out.Values[i] = ec._NonconformityRegistry_rootCause(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "correctiveAction":
|
|
out.Values[i] = ec._NonconformityRegistry_correctiveAction(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._NonconformityRegistry_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 "dueDate":
|
|
out.Values[i] = ec._NonconformityRegistry_dueDate(ctx, field, obj)
|
|
case "status":
|
|
out.Values[i] = ec._NonconformityRegistry_status(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "effectivenessCheck":
|
|
out.Values[i] = ec._NonconformityRegistry_effectivenessCheck(ctx, field, obj)
|
|
case "createdAt":
|
|
out.Values[i] = ec._NonconformityRegistry_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._NonconformityRegistry_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 nonconformityRegistryConnectionImplementors = []string{"NonconformityRegistryConnection"}
|
|
|
|
func (ec *executionContext) _NonconformityRegistryConnection(ctx context.Context, sel ast.SelectionSet, obj *types.NonconformityRegistryConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, nonconformityRegistryConnectionImplementors)
|
|
|
|
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("NonconformityRegistryConnection")
|
|
case "totalCount":
|
|
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._NonconformityRegistryConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._NonconformityRegistryConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._NonconformityRegistryConnection_pageInfo(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 nonconformityRegistryEdgeImplementors = []string{"NonconformityRegistryEdge"}
|
|
|
|
func (ec *executionContext) _NonconformityRegistryEdge(ctx context.Context, sel ast.SelectionSet, obj *types.NonconformityRegistryEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, nonconformityRegistryEdgeImplementors)
|
|
|
|
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("NonconformityRegistryEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._NonconformityRegistryEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._NonconformityRegistryEdge_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 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 "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._Organization_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 "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 "documents":
|
|
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_documents(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 "measures":
|
|
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_measures(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 "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._Organization_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 "assets":
|
|
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_assets(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 "data":
|
|
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_data(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 "audits":
|
|
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_audits(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 "nonconformityRegistries":
|
|
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_nonconformityRegistries(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 "complianceRegistries":
|
|
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_complianceRegistries(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 "continualImprovementRegistries":
|
|
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_continualImprovementRegistries(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 "processingActivityRegistries":
|
|
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_processingActivityRegistries(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 "snapshots":
|
|
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_snapshots(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 "trustCenter":
|
|
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_trustCenter(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 "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 "position":
|
|
out.Values[i] = ec._People_position(ctx, field, obj)
|
|
case "contractStartDate":
|
|
out.Values[i] = ec._People_contractStartDate(ctx, field, obj)
|
|
case "contractEndDate":
|
|
out.Values[i] = ec._People_contractEndDate(ctx, field, obj)
|
|
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 "totalCount":
|
|
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._PeopleConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._PeopleConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._PeopleConnection_pageInfo(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 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 processingActivityRegistryImplementors = []string{"ProcessingActivityRegistry", "Node"}
|
|
|
|
func (ec *executionContext) _ProcessingActivityRegistry(ctx context.Context, sel ast.SelectionSet, obj *types.ProcessingActivityRegistry) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, processingActivityRegistryImplementors)
|
|
|
|
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("ProcessingActivityRegistry")
|
|
case "id":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "snapshotId":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_snapshotId(ctx, field, obj)
|
|
case "sourceId":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_sourceId(ctx, field, obj)
|
|
case "organization":
|
|
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._ProcessingActivityRegistry_organization(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 "name":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "purpose":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_purpose(ctx, field, obj)
|
|
case "dataSubjectCategory":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_dataSubjectCategory(ctx, field, obj)
|
|
case "personalDataCategory":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_personalDataCategory(ctx, field, obj)
|
|
case "specialOrCriminalData":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_specialOrCriminalData(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "consentEvidenceLink":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_consentEvidenceLink(ctx, field, obj)
|
|
case "lawfulBasis":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_lawfulBasis(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "recipients":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_recipients(ctx, field, obj)
|
|
case "location":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_location(ctx, field, obj)
|
|
case "internationalTransfers":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_internationalTransfers(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "transferSafeguards":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_transferSafeguards(ctx, field, obj)
|
|
case "retentionPeriod":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_retentionPeriod(ctx, field, obj)
|
|
case "securityMeasures":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_securityMeasures(ctx, field, obj)
|
|
case "dataProtectionImpactAssessment":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_dataProtectionImpactAssessment(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "transferImpactAssessment":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_transferImpactAssessment(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._ProcessingActivityRegistry_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 processingActivityRegistryConnectionImplementors = []string{"ProcessingActivityRegistryConnection"}
|
|
|
|
func (ec *executionContext) _ProcessingActivityRegistryConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ProcessingActivityRegistryConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, processingActivityRegistryConnectionImplementors)
|
|
|
|
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("ProcessingActivityRegistryConnection")
|
|
case "totalCount":
|
|
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._ProcessingActivityRegistryConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._ProcessingActivityRegistryConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._ProcessingActivityRegistryConnection_pageInfo(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 processingActivityRegistryEdgeImplementors = []string{"ProcessingActivityRegistryEdge"}
|
|
|
|
func (ec *executionContext) _ProcessingActivityRegistryEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ProcessingActivityRegistryEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, processingActivityRegistryEdgeImplementors)
|
|
|
|
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("ProcessingActivityRegistryEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._ProcessingActivityRegistryEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._ProcessingActivityRegistryEdge_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 publishDocumentVersionPayloadImplementors = []string{"PublishDocumentVersionPayload"}
|
|
|
|
func (ec *executionContext) _PublishDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.PublishDocumentVersionPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, publishDocumentVersionPayloadImplementors)
|
|
|
|
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("PublishDocumentVersionPayload")
|
|
case "documentVersion":
|
|
out.Values[i] = ec._PublishDocumentVersionPayload_documentVersion(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "document":
|
|
out.Values[i] = ec._PublishDocumentVersionPayload_document(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 reportImplementors = []string{"Report", "Node"}
|
|
|
|
func (ec *executionContext) _Report(ctx context.Context, sel ast.SelectionSet, obj *types.Report) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, reportImplementors)
|
|
|
|
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("Report")
|
|
case "id":
|
|
out.Values[i] = ec._Report_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "objectKey":
|
|
out.Values[i] = ec._Report_objectKey(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "mimeType":
|
|
out.Values[i] = ec._Report_mimeType(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "filename":
|
|
out.Values[i] = ec._Report_filename(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "size":
|
|
out.Values[i] = ec._Report_size(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "downloadUrl":
|
|
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._Report_downloadUrl(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 "createdAt":
|
|
out.Values[i] = ec._Report_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Report_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 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 requestSignaturePayloadImplementors = []string{"RequestSignaturePayload"}
|
|
|
|
func (ec *executionContext) _RequestSignaturePayload(ctx context.Context, sel ast.SelectionSet, obj *types.RequestSignaturePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, requestSignaturePayloadImplementors)
|
|
|
|
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("RequestSignaturePayload")
|
|
case "documentVersionSignatureEdge":
|
|
out.Values[i] = ec._RequestSignaturePayload_documentVersionSignatureEdge(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 "inherentRiskScore":
|
|
out.Values[i] = ec._Risk_inherentRiskScore(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 "residualRiskScore":
|
|
out.Values[i] = ec._Risk_residualRiskScore(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 "organization":
|
|
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_organization(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 "measures":
|
|
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_measures(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 "documents":
|
|
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_documents(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 "totalCount":
|
|
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._RiskConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._RiskConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._RiskConnection_pageInfo(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 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 sendSigningNotificationsPayloadImplementors = []string{"SendSigningNotificationsPayload"}
|
|
|
|
func (ec *executionContext) _SendSigningNotificationsPayload(ctx context.Context, sel ast.SelectionSet, obj *types.SendSigningNotificationsPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sendSigningNotificationsPayloadImplementors)
|
|
|
|
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("SendSigningNotificationsPayload")
|
|
case "success":
|
|
out.Values[i] = ec._SendSigningNotificationsPayload_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 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 snapshotImplementors = []string{"Snapshot", "Node"}
|
|
|
|
func (ec *executionContext) _Snapshot(ctx context.Context, sel ast.SelectionSet, obj *types.Snapshot) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, snapshotImplementors)
|
|
|
|
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("Snapshot")
|
|
case "id":
|
|
out.Values[i] = ec._Snapshot_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "organization":
|
|
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._Snapshot_organization(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 "name":
|
|
out.Values[i] = ec._Snapshot_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec._Snapshot_description(ctx, field, obj)
|
|
case "type":
|
|
out.Values[i] = ec._Snapshot_type(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._Snapshot_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._Snapshot_createdAt(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 snapshotConnectionImplementors = []string{"SnapshotConnection"}
|
|
|
|
func (ec *executionContext) _SnapshotConnection(ctx context.Context, sel ast.SelectionSet, obj *types.SnapshotConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, snapshotConnectionImplementors)
|
|
|
|
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("SnapshotConnection")
|
|
case "totalCount":
|
|
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._SnapshotConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._SnapshotConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._SnapshotConnection_pageInfo(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 snapshotEdgeImplementors = []string{"SnapshotEdge"}
|
|
|
|
func (ec *executionContext) _SnapshotEdge(ctx context.Context, sel ast.SelectionSet, obj *types.SnapshotEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, snapshotEdgeImplementors)
|
|
|
|
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("SnapshotEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._SnapshotEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._SnapshotEdge_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 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 "deadline":
|
|
out.Values[i] = ec._Task_deadline(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 "organization":
|
|
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_organization(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 "measure":
|
|
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_measure(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 "totalCount":
|
|
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._TaskConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._TaskConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._TaskConnection_pageInfo(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 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 trustCenterImplementors = []string{"TrustCenter", "Node"}
|
|
|
|
func (ec *executionContext) _TrustCenter(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenter) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterImplementors)
|
|
|
|
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("TrustCenter")
|
|
case "id":
|
|
out.Values[i] = ec._TrustCenter_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "active":
|
|
out.Values[i] = ec._TrustCenter_active(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "slug":
|
|
out.Values[i] = ec._TrustCenter_slug(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._TrustCenter_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._TrustCenter_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "organization":
|
|
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._TrustCenter_organization(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 "accesses":
|
|
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._TrustCenter_accesses(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 trustCenterAccessImplementors = []string{"TrustCenterAccess", "Node"}
|
|
|
|
func (ec *executionContext) _TrustCenterAccess(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterAccess) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterAccessImplementors)
|
|
|
|
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("TrustCenterAccess")
|
|
case "id":
|
|
out.Values[i] = ec._TrustCenterAccess_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "email":
|
|
out.Values[i] = ec._TrustCenterAccess_email(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._TrustCenterAccess_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "active":
|
|
out.Values[i] = ec._TrustCenterAccess_active(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._TrustCenterAccess_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._TrustCenterAccess_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 trustCenterAccessConnectionImplementors = []string{"TrustCenterAccessConnection"}
|
|
|
|
func (ec *executionContext) _TrustCenterAccessConnection(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterAccessConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterAccessConnectionImplementors)
|
|
|
|
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("TrustCenterAccessConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._TrustCenterAccessConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._TrustCenterAccessConnection_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 trustCenterAccessEdgeImplementors = []string{"TrustCenterAccessEdge"}
|
|
|
|
func (ec *executionContext) _TrustCenterAccessEdge(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterAccessEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterAccessEdgeImplementors)
|
|
|
|
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("TrustCenterAccessEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._TrustCenterAccessEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._TrustCenterAccessEdge_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 trustCenterConnectionImplementors = []string{"TrustCenterConnection"}
|
|
|
|
func (ec *executionContext) _TrustCenterConnection(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterConnectionImplementors)
|
|
|
|
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("TrustCenterConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._TrustCenterConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._TrustCenterConnection_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 trustCenterEdgeImplementors = []string{"TrustCenterEdge"}
|
|
|
|
func (ec *executionContext) _TrustCenterEdge(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterEdgeImplementors)
|
|
|
|
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("TrustCenterEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._TrustCenterEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._TrustCenterEdge_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 updateAssetPayloadImplementors = []string{"UpdateAssetPayload"}
|
|
|
|
func (ec *executionContext) _UpdateAssetPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateAssetPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateAssetPayloadImplementors)
|
|
|
|
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("UpdateAssetPayload")
|
|
case "asset":
|
|
out.Values[i] = ec._UpdateAssetPayload_asset(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 updateAuditPayloadImplementors = []string{"UpdateAuditPayload"}
|
|
|
|
func (ec *executionContext) _UpdateAuditPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateAuditPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateAuditPayloadImplementors)
|
|
|
|
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("UpdateAuditPayload")
|
|
case "audit":
|
|
out.Values[i] = ec._UpdateAuditPayload_audit(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 updateComplianceRegistryPayloadImplementors = []string{"UpdateComplianceRegistryPayload"}
|
|
|
|
func (ec *executionContext) _UpdateComplianceRegistryPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateComplianceRegistryPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateComplianceRegistryPayloadImplementors)
|
|
|
|
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("UpdateComplianceRegistryPayload")
|
|
case "complianceRegistry":
|
|
out.Values[i] = ec._UpdateComplianceRegistryPayload_complianceRegistry(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 updateContinualImprovementRegistryPayloadImplementors = []string{"UpdateContinualImprovementRegistryPayload"}
|
|
|
|
func (ec *executionContext) _UpdateContinualImprovementRegistryPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateContinualImprovementRegistryPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateContinualImprovementRegistryPayloadImplementors)
|
|
|
|
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("UpdateContinualImprovementRegistryPayload")
|
|
case "continualImprovementRegistry":
|
|
out.Values[i] = ec._UpdateContinualImprovementRegistryPayload_continualImprovementRegistry(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 updateControlPayloadImplementors = []string{"UpdateControlPayload"}
|
|
|
|
func (ec *executionContext) _UpdateControlPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateControlPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateControlPayloadImplementors)
|
|
|
|
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("UpdateControlPayload")
|
|
case "control":
|
|
out.Values[i] = ec._UpdateControlPayload_control(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 updateDatumPayloadImplementors = []string{"UpdateDatumPayload"}
|
|
|
|
func (ec *executionContext) _UpdateDatumPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateDatumPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateDatumPayloadImplementors)
|
|
|
|
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("UpdateDatumPayload")
|
|
case "datum":
|
|
out.Values[i] = ec._UpdateDatumPayload_datum(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 updateDocumentPayloadImplementors = []string{"UpdateDocumentPayload"}
|
|
|
|
func (ec *executionContext) _UpdateDocumentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateDocumentPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateDocumentPayloadImplementors)
|
|
|
|
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("UpdateDocumentPayload")
|
|
case "document":
|
|
out.Values[i] = ec._UpdateDocumentPayload_document(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 updateDocumentVersionPayloadImplementors = []string{"UpdateDocumentVersionPayload"}
|
|
|
|
func (ec *executionContext) _UpdateDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateDocumentVersionPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateDocumentVersionPayloadImplementors)
|
|
|
|
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("UpdateDocumentVersionPayload")
|
|
case "documentVersion":
|
|
out.Values[i] = ec._UpdateDocumentVersionPayload_documentVersion(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 updateMeasurePayloadImplementors = []string{"UpdateMeasurePayload"}
|
|
|
|
func (ec *executionContext) _UpdateMeasurePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateMeasurePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateMeasurePayloadImplementors)
|
|
|
|
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("UpdateMeasurePayload")
|
|
case "measure":
|
|
out.Values[i] = ec._UpdateMeasurePayload_measure(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 updateNonconformityRegistryPayloadImplementors = []string{"UpdateNonconformityRegistryPayload"}
|
|
|
|
func (ec *executionContext) _UpdateNonconformityRegistryPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateNonconformityRegistryPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateNonconformityRegistryPayloadImplementors)
|
|
|
|
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("UpdateNonconformityRegistryPayload")
|
|
case "nonconformityRegistry":
|
|
out.Values[i] = ec._UpdateNonconformityRegistryPayload_nonconformityRegistry(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 updateProcessingActivityRegistryPayloadImplementors = []string{"UpdateProcessingActivityRegistryPayload"}
|
|
|
|
func (ec *executionContext) _UpdateProcessingActivityRegistryPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateProcessingActivityRegistryPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateProcessingActivityRegistryPayloadImplementors)
|
|
|
|
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("UpdateProcessingActivityRegistryPayload")
|
|
case "processingActivityRegistry":
|
|
out.Values[i] = ec._UpdateProcessingActivityRegistryPayload_processingActivityRegistry(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 updateTrustCenterAccessPayloadImplementors = []string{"UpdateTrustCenterAccessPayload"}
|
|
|
|
func (ec *executionContext) _UpdateTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateTrustCenterAccessPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateTrustCenterAccessPayloadImplementors)
|
|
|
|
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("UpdateTrustCenterAccessPayload")
|
|
case "trustCenterAccess":
|
|
out.Values[i] = ec._UpdateTrustCenterAccessPayload_trustCenterAccess(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 updateTrustCenterPayloadImplementors = []string{"UpdateTrustCenterPayload"}
|
|
|
|
func (ec *executionContext) _UpdateTrustCenterPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateTrustCenterPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateTrustCenterPayloadImplementors)
|
|
|
|
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("UpdateTrustCenterPayload")
|
|
case "trustCenter":
|
|
out.Values[i] = ec._UpdateTrustCenterPayload_trustCenter(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 updateVendorBusinessAssociateAgreementPayloadImplementors = []string{"UpdateVendorBusinessAssociateAgreementPayload"}
|
|
|
|
func (ec *executionContext) _UpdateVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateVendorBusinessAssociateAgreementPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateVendorBusinessAssociateAgreementPayloadImplementors)
|
|
|
|
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("UpdateVendorBusinessAssociateAgreementPayload")
|
|
case "vendorBusinessAssociateAgreement":
|
|
out.Values[i] = ec._UpdateVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(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 updateVendorContactPayloadImplementors = []string{"UpdateVendorContactPayload"}
|
|
|
|
func (ec *executionContext) _UpdateVendorContactPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateVendorContactPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateVendorContactPayloadImplementors)
|
|
|
|
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("UpdateVendorContactPayload")
|
|
case "vendorContact":
|
|
out.Values[i] = ec._UpdateVendorContactPayload_vendorContact(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 updateVendorDataPrivacyAgreementPayloadImplementors = []string{"UpdateVendorDataPrivacyAgreementPayload"}
|
|
|
|
func (ec *executionContext) _UpdateVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateVendorDataPrivacyAgreementPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateVendorDataPrivacyAgreementPayloadImplementors)
|
|
|
|
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("UpdateVendorDataPrivacyAgreementPayload")
|
|
case "vendorDataPrivacyAgreement":
|
|
out.Values[i] = ec._UpdateVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(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 updateVendorServicePayloadImplementors = []string{"UpdateVendorServicePayload"}
|
|
|
|
func (ec *executionContext) _UpdateVendorServicePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateVendorServicePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateVendorServicePayloadImplementors)
|
|
|
|
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("UpdateVendorServicePayload")
|
|
case "vendorService":
|
|
out.Values[i] = ec._UpdateVendorServicePayload_vendorService(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 uploadAuditReportPayloadImplementors = []string{"UploadAuditReportPayload"}
|
|
|
|
func (ec *executionContext) _UploadAuditReportPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UploadAuditReportPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, uploadAuditReportPayloadImplementors)
|
|
|
|
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("UploadAuditReportPayload")
|
|
case "audit":
|
|
out.Values[i] = ec._UploadAuditReportPayload_audit(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 uploadMeasureEvidencePayloadImplementors = []string{"UploadMeasureEvidencePayload"}
|
|
|
|
func (ec *executionContext) _UploadMeasureEvidencePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UploadMeasureEvidencePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, uploadMeasureEvidencePayloadImplementors)
|
|
|
|
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("UploadMeasureEvidencePayload")
|
|
case "evidenceEdge":
|
|
out.Values[i] = ec._UploadMeasureEvidencePayload_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 uploadTaskEvidencePayloadImplementors = []string{"UploadTaskEvidencePayload"}
|
|
|
|
func (ec *executionContext) _UploadTaskEvidencePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UploadTaskEvidencePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, uploadTaskEvidencePayloadImplementors)
|
|
|
|
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("UploadTaskEvidencePayload")
|
|
case "evidenceEdge":
|
|
out.Values[i] = ec._UploadTaskEvidencePayload_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 uploadVendorBusinessAssociateAgreementPayloadImplementors = []string{"UploadVendorBusinessAssociateAgreementPayload"}
|
|
|
|
func (ec *executionContext) _UploadVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UploadVendorBusinessAssociateAgreementPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, uploadVendorBusinessAssociateAgreementPayloadImplementors)
|
|
|
|
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("UploadVendorBusinessAssociateAgreementPayload")
|
|
case "vendorBusinessAssociateAgreement":
|
|
out.Values[i] = ec._UploadVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(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 uploadVendorDataPrivacyAgreementPayloadImplementors = []string{"UploadVendorDataPrivacyAgreementPayload"}
|
|
|
|
func (ec *executionContext) _UploadVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UploadVendorDataPrivacyAgreementPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, uploadVendorDataPrivacyAgreementPayloadImplementors)
|
|
|
|
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("UploadVendorDataPrivacyAgreementPayload")
|
|
case "vendorDataPrivacyAgreement":
|
|
out.Values[i] = ec._UploadVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(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 "category":
|
|
out.Values[i] = ec._Vendor_category(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 "organization":
|
|
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_organization(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 "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 "businessAssociateAgreement":
|
|
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_businessAssociateAgreement(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 "dataPrivacyAgreement":
|
|
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_dataPrivacyAgreement(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 "contacts":
|
|
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_contacts(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 "services":
|
|
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_services(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 "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 "businessAssociateAgreementUrl":
|
|
out.Values[i] = ec._Vendor_businessAssociateAgreementUrl(ctx, field, obj)
|
|
case "subprocessorsListUrl":
|
|
out.Values[i] = ec._Vendor_subprocessorsListUrl(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 "showOnTrustCenter":
|
|
out.Values[i] = ec._Vendor_showOnTrustCenter(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
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 vendorBusinessAssociateAgreementImplementors = []string{"VendorBusinessAssociateAgreement", "Node"}
|
|
|
|
func (ec *executionContext) _VendorBusinessAssociateAgreement(ctx context.Context, sel ast.SelectionSet, obj *types.VendorBusinessAssociateAgreement) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorBusinessAssociateAgreementImplementors)
|
|
|
|
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("VendorBusinessAssociateAgreement")
|
|
case "id":
|
|
out.Values[i] = ec._VendorBusinessAssociateAgreement_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._VendorBusinessAssociateAgreement_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 "validFrom":
|
|
out.Values[i] = ec._VendorBusinessAssociateAgreement_validFrom(ctx, field, obj)
|
|
case "validUntil":
|
|
out.Values[i] = ec._VendorBusinessAssociateAgreement_validUntil(ctx, field, obj)
|
|
case "fileName":
|
|
out.Values[i] = ec._VendorBusinessAssociateAgreement_fileName(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._VendorBusinessAssociateAgreement_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._VendorBusinessAssociateAgreement_fileSize(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._VendorBusinessAssociateAgreement_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._VendorBusinessAssociateAgreement_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 "totalCount":
|
|
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._VendorConnection_totalCount(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 "edges":
|
|
out.Values[i] = ec._VendorConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._VendorConnection_pageInfo(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 vendorContactImplementors = []string{"VendorContact", "Node"}
|
|
|
|
func (ec *executionContext) _VendorContact(ctx context.Context, sel ast.SelectionSet, obj *types.VendorContact) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorContactImplementors)
|
|
|
|
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("VendorContact")
|
|
case "id":
|
|
out.Values[i] = ec._VendorContact_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._VendorContact_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 "fullName":
|
|
out.Values[i] = ec._VendorContact_fullName(ctx, field, obj)
|
|
case "email":
|
|
out.Values[i] = ec._VendorContact_email(ctx, field, obj)
|
|
case "phone":
|
|
out.Values[i] = ec._VendorContact_phone(ctx, field, obj)
|
|
case "role":
|
|
out.Values[i] = ec._VendorContact_role(ctx, field, obj)
|
|
case "createdAt":
|
|
out.Values[i] = ec._VendorContact_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._VendorContact_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 vendorContactConnectionImplementors = []string{"VendorContactConnection"}
|
|
|
|
func (ec *executionContext) _VendorContactConnection(ctx context.Context, sel ast.SelectionSet, obj *types.VendorContactConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorContactConnectionImplementors)
|
|
|
|
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("VendorContactConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._VendorContactConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._VendorContactConnection_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 vendorContactEdgeImplementors = []string{"VendorContactEdge"}
|
|
|
|
func (ec *executionContext) _VendorContactEdge(ctx context.Context, sel ast.SelectionSet, obj *types.VendorContactEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorContactEdgeImplementors)
|
|
|
|
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("VendorContactEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._VendorContactEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._VendorContactEdge_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 vendorDataPrivacyAgreementImplementors = []string{"VendorDataPrivacyAgreement", "Node"}
|
|
|
|
func (ec *executionContext) _VendorDataPrivacyAgreement(ctx context.Context, sel ast.SelectionSet, obj *types.VendorDataPrivacyAgreement) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorDataPrivacyAgreementImplementors)
|
|
|
|
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("VendorDataPrivacyAgreement")
|
|
case "id":
|
|
out.Values[i] = ec._VendorDataPrivacyAgreement_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._VendorDataPrivacyAgreement_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 "validFrom":
|
|
out.Values[i] = ec._VendorDataPrivacyAgreement_validFrom(ctx, field, obj)
|
|
case "validUntil":
|
|
out.Values[i] = ec._VendorDataPrivacyAgreement_validUntil(ctx, field, obj)
|
|
case "fileName":
|
|
out.Values[i] = ec._VendorDataPrivacyAgreement_fileName(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._VendorDataPrivacyAgreement_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._VendorDataPrivacyAgreement_fileSize(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._VendorDataPrivacyAgreement_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._VendorDataPrivacyAgreement_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 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 vendorServiceImplementors = []string{"VendorService", "Node"}
|
|
|
|
func (ec *executionContext) _VendorService(ctx context.Context, sel ast.SelectionSet, obj *types.VendorService) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorServiceImplementors)
|
|
|
|
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("VendorService")
|
|
case "id":
|
|
out.Values[i] = ec._VendorService_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._VendorService_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 "name":
|
|
out.Values[i] = ec._VendorService_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec._VendorService_description(ctx, field, obj)
|
|
case "createdAt":
|
|
out.Values[i] = ec._VendorService_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._VendorService_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 vendorServiceConnectionImplementors = []string{"VendorServiceConnection"}
|
|
|
|
func (ec *executionContext) _VendorServiceConnection(ctx context.Context, sel ast.SelectionSet, obj *types.VendorServiceConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorServiceConnectionImplementors)
|
|
|
|
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("VendorServiceConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._VendorServiceConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._VendorServiceConnection_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 vendorServiceEdgeImplementors = []string{"VendorServiceEdge"}
|
|
|
|
func (ec *executionContext) _VendorServiceEdge(ctx context.Context, sel ast.SelectionSet, obj *types.VendorServiceEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, vendorServiceEdgeImplementors)
|
|
|
|
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("VendorServiceEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._VendorServiceEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._VendorServiceEdge_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) unmarshalNAssessVendorInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssessVendorInput(ctx context.Context, v any) (types.AssessVendorInput, error) {
|
|
res, err := ec.unmarshalInputAssessVendorInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAssessVendorPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssessVendorPayload(ctx context.Context, sel ast.SelectionSet, v types.AssessVendorPayload) graphql.Marshaler {
|
|
return ec._AssessVendorPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAssessVendorPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssessVendorPayload(ctx context.Context, sel ast.SelectionSet, v *types.AssessVendorPayload) 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._AssessVendorPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAsset2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAsset(ctx context.Context, sel ast.SelectionSet, v *types.Asset) 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._Asset(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAssetConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetConnection(ctx context.Context, sel ast.SelectionSet, v types.AssetConnection) graphql.Marshaler {
|
|
return ec._AssetConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAssetConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetConnection(ctx context.Context, sel ast.SelectionSet, v *types.AssetConnection) 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._AssetConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAssetEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.AssetEdge) 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.marshalNAssetEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetEdge(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) marshalNAssetEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetEdge(ctx context.Context, sel ast.SelectionSet, v *types.AssetEdge) 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._AssetEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNAssetOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetOrderField(ctx context.Context, v any) (coredata.AssetOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNAssetOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAssetOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.AssetOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNAssetOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetOrderField[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 (
|
|
unmarshalNAssetOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetOrderField = map[string]coredata.AssetOrderField{
|
|
"CREATED_AT": coredata.AssetOrderFieldCreatedAt,
|
|
"AMOUNT": coredata.AssetOrderFieldAmount,
|
|
"CRITICITY": coredata.AssetOrderFieldCriticity,
|
|
}
|
|
marshalNAssetOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetOrderField = map[coredata.AssetOrderField]string{
|
|
coredata.AssetOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.AssetOrderFieldAmount: "AMOUNT",
|
|
coredata.AssetOrderFieldCriticity: "CRITICITY",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNAssetType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType(ctx context.Context, v any) (coredata.AssetType, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNAssetType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAssetType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType(ctx context.Context, sel ast.SelectionSet, v coredata.AssetType) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNAssetType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType[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 (
|
|
unmarshalNAssetType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType = map[string]coredata.AssetType{
|
|
"PHYSICAL": coredata.AssetTypePhysical,
|
|
"VIRTUAL": coredata.AssetTypeVirtual,
|
|
}
|
|
marshalNAssetType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType = map[coredata.AssetType]string{
|
|
coredata.AssetTypePhysical: "PHYSICAL",
|
|
coredata.AssetTypeVirtual: "VIRTUAL",
|
|
}
|
|
)
|
|
|
|
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) marshalNAudit2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit(ctx context.Context, sel ast.SelectionSet, v types.Audit) graphql.Marshaler {
|
|
return ec._Audit(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAudit2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit(ctx context.Context, sel ast.SelectionSet, v *types.Audit) 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._Audit(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAuditConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditConnection(ctx context.Context, sel ast.SelectionSet, v types.AuditConnection) graphql.Marshaler {
|
|
return ec._AuditConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAuditConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditConnection(ctx context.Context, sel ast.SelectionSet, v *types.AuditConnection) 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._AuditConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAuditEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.AuditEdge) 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.marshalNAuditEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditEdge(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) marshalNAuditEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditEdge(ctx context.Context, sel ast.SelectionSet, v *types.AuditEdge) 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._AuditEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNAuditOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditOrderField(ctx context.Context, v any) (coredata.AuditOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNAuditOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAuditOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.AuditOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNAuditOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditOrderField[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 (
|
|
unmarshalNAuditOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditOrderField = map[string]coredata.AuditOrderField{
|
|
"CREATED_AT": coredata.AuditOrderFieldCreatedAt,
|
|
"VALID_FROM": coredata.AuditOrderFieldValidFrom,
|
|
"VALID_UNTIL": coredata.AuditOrderFieldValidUntil,
|
|
"STATE": coredata.AuditOrderFieldState,
|
|
}
|
|
marshalNAuditOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditOrderField = map[coredata.AuditOrderField]string{
|
|
coredata.AuditOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.AuditOrderFieldValidFrom: "VALID_FROM",
|
|
coredata.AuditOrderFieldValidUntil: "VALID_UNTIL",
|
|
coredata.AuditOrderFieldState: "STATE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNAuditState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState(ctx context.Context, v any) (coredata.AuditState, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNAuditState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAuditState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState(ctx context.Context, sel ast.SelectionSet, v coredata.AuditState) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNAuditState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState[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 (
|
|
unmarshalNAuditState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState = map[string]coredata.AuditState{
|
|
"NOT_STARTED": coredata.AuditStateNotStarted,
|
|
"IN_PROGRESS": coredata.AuditStateInProgress,
|
|
"COMPLETED": coredata.AuditStateCompleted,
|
|
"REJECTED": coredata.AuditStateRejected,
|
|
"OUTDATED": coredata.AuditStateOutdated,
|
|
}
|
|
marshalNAuditState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState = map[coredata.AuditState]string{
|
|
coredata.AuditStateNotStarted: "NOT_STARTED",
|
|
coredata.AuditStateInProgress: "IN_PROGRESS",
|
|
coredata.AuditStateCompleted: "COMPLETED",
|
|
coredata.AuditStateRejected: "REJECTED",
|
|
coredata.AuditStateOutdated: "OUTDATED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) {
|
|
res, err := graphql.UnmarshalBoolean(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalBoolean(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
ec.Errorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNBulkPublishDocumentVersionsInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkPublishDocumentVersionsInput(ctx context.Context, v any) (types.BulkPublishDocumentVersionsInput, error) {
|
|
res, err := ec.unmarshalInputBulkPublishDocumentVersionsInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNBulkPublishDocumentVersionsPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkPublishDocumentVersionsPayload(ctx context.Context, sel ast.SelectionSet, v types.BulkPublishDocumentVersionsPayload) graphql.Marshaler {
|
|
return ec._BulkPublishDocumentVersionsPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNBulkPublishDocumentVersionsPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkPublishDocumentVersionsPayload(ctx context.Context, sel ast.SelectionSet, v *types.BulkPublishDocumentVersionsPayload) 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._BulkPublishDocumentVersionsPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNBulkRequestSignaturesInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkRequestSignaturesInput(ctx context.Context, v any) (types.BulkRequestSignaturesInput, error) {
|
|
res, err := ec.unmarshalInputBulkRequestSignaturesInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNBulkRequestSignaturesPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkRequestSignaturesPayload(ctx context.Context, sel ast.SelectionSet, v types.BulkRequestSignaturesPayload) graphql.Marshaler {
|
|
return ec._BulkRequestSignaturesPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNBulkRequestSignaturesPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkRequestSignaturesPayload(ctx context.Context, sel ast.SelectionSet, v *types.BulkRequestSignaturesPayload) 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._BulkRequestSignaturesPayload(ctx, sel, v)
|
|
}
|
|
|
|
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 {
|
|
_ = sel
|
|
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) unmarshalNCancelSignatureRequestInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCancelSignatureRequestInput(ctx context.Context, v any) (types.CancelSignatureRequestInput, error) {
|
|
res, err := ec.unmarshalInputCancelSignatureRequestInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCancelSignatureRequestPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCancelSignatureRequestPayload(ctx context.Context, sel ast.SelectionSet, v types.CancelSignatureRequestPayload) graphql.Marshaler {
|
|
return ec._CancelSignatureRequestPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCancelSignatureRequestPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCancelSignatureRequestPayload(ctx context.Context, sel ast.SelectionSet, v *types.CancelSignatureRequestPayload) 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._CancelSignatureRequestPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNComplianceRegistry2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistry(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceRegistry) 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._ComplianceRegistry(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNComplianceRegistryConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistryConnection(ctx context.Context, sel ast.SelectionSet, v types.ComplianceRegistryConnection) graphql.Marshaler {
|
|
return ec._ComplianceRegistryConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNComplianceRegistryConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistryConnection(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceRegistryConnection) 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._ComplianceRegistryConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNComplianceRegistryEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistryEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ComplianceRegistryEdge) 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.marshalNComplianceRegistryEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistryEdge(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) marshalNComplianceRegistryEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistryEdge(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceRegistryEdge) 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._ComplianceRegistryEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNComplianceRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryOrderField(ctx context.Context, v any) (coredata.ComplianceRegistryOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNComplianceRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNComplianceRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.ComplianceRegistryOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNComplianceRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryOrderField[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 (
|
|
unmarshalNComplianceRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryOrderField = map[string]coredata.ComplianceRegistryOrderField{
|
|
"CREATED_AT": coredata.ComplianceRegistryOrderFieldCreatedAt,
|
|
"REFERENCE_ID": coredata.ComplianceRegistryOrderFieldReferenceId,
|
|
"LAST_REVIEW_DATE": coredata.ComplianceRegistryOrderFieldLastReviewDate,
|
|
"DUE_DATE": coredata.ComplianceRegistryOrderFieldDueDate,
|
|
"STATUS": coredata.ComplianceRegistryOrderFieldStatus,
|
|
}
|
|
marshalNComplianceRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryOrderField = map[coredata.ComplianceRegistryOrderField]string{
|
|
coredata.ComplianceRegistryOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.ComplianceRegistryOrderFieldReferenceId: "REFERENCE_ID",
|
|
coredata.ComplianceRegistryOrderFieldLastReviewDate: "LAST_REVIEW_DATE",
|
|
coredata.ComplianceRegistryOrderFieldDueDate: "DUE_DATE",
|
|
coredata.ComplianceRegistryOrderFieldStatus: "STATUS",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNComplianceRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus(ctx context.Context, v any) (coredata.ComplianceRegistryStatus, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNComplianceRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNComplianceRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus(ctx context.Context, sel ast.SelectionSet, v coredata.ComplianceRegistryStatus) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNComplianceRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus[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 (
|
|
unmarshalNComplianceRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus = map[string]coredata.ComplianceRegistryStatus{
|
|
"OPEN": coredata.ComplianceRegistryStatusOpen,
|
|
"IN_PROGRESS": coredata.ComplianceRegistryStatusInProgress,
|
|
"CLOSED": coredata.ComplianceRegistryStatusClosed,
|
|
}
|
|
marshalNComplianceRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus = map[coredata.ComplianceRegistryStatus]string{
|
|
coredata.ComplianceRegistryStatusOpen: "OPEN",
|
|
coredata.ComplianceRegistryStatusInProgress: "IN_PROGRESS",
|
|
coredata.ComplianceRegistryStatusClosed: "CLOSED",
|
|
}
|
|
)
|
|
|
|
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 {
|
|
_ = sel
|
|
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) unmarshalNContinualImprovementRegistriesOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesOrderField(ctx context.Context, v any) (coredata.ContinualImprovementRegistriesOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNContinualImprovementRegistriesOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNContinualImprovementRegistriesOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.ContinualImprovementRegistriesOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNContinualImprovementRegistriesOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesOrderField[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 (
|
|
unmarshalNContinualImprovementRegistriesOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesOrderField = map[string]coredata.ContinualImprovementRegistriesOrderField{
|
|
"CREATED_AT": coredata.ContinualImprovementRegistriesOrderFieldCreatedAt,
|
|
"REFERENCE_ID": coredata.ContinualImprovementRegistriesOrderFieldReferenceId,
|
|
"TARGET_DATE": coredata.ContinualImprovementRegistriesOrderFieldTargetDate,
|
|
"STATUS": coredata.ContinualImprovementRegistriesOrderFieldStatus,
|
|
"PRIORITY": coredata.ContinualImprovementRegistriesOrderFieldPriority,
|
|
}
|
|
marshalNContinualImprovementRegistriesOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesOrderField = map[coredata.ContinualImprovementRegistriesOrderField]string{
|
|
coredata.ContinualImprovementRegistriesOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.ContinualImprovementRegistriesOrderFieldReferenceId: "REFERENCE_ID",
|
|
coredata.ContinualImprovementRegistriesOrderFieldTargetDate: "TARGET_DATE",
|
|
coredata.ContinualImprovementRegistriesOrderFieldStatus: "STATUS",
|
|
coredata.ContinualImprovementRegistriesOrderFieldPriority: "PRIORITY",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNContinualImprovementRegistriesPriority2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority(ctx context.Context, v any) (coredata.ContinualImprovementRegistriesPriority, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNContinualImprovementRegistriesPriority2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNContinualImprovementRegistriesPriority2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority(ctx context.Context, sel ast.SelectionSet, v coredata.ContinualImprovementRegistriesPriority) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNContinualImprovementRegistriesPriority2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority[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 (
|
|
unmarshalNContinualImprovementRegistriesPriority2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority = map[string]coredata.ContinualImprovementRegistriesPriority{
|
|
"LOW": coredata.ContinualImprovementRegistriesPriorityLow,
|
|
"MEDIUM": coredata.ContinualImprovementRegistriesPriorityMedium,
|
|
"HIGH": coredata.ContinualImprovementRegistriesPriorityHigh,
|
|
}
|
|
marshalNContinualImprovementRegistriesPriority2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority = map[coredata.ContinualImprovementRegistriesPriority]string{
|
|
coredata.ContinualImprovementRegistriesPriorityLow: "LOW",
|
|
coredata.ContinualImprovementRegistriesPriorityMedium: "MEDIUM",
|
|
coredata.ContinualImprovementRegistriesPriorityHigh: "HIGH",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNContinualImprovementRegistriesStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus(ctx context.Context, v any) (coredata.ContinualImprovementRegistriesStatus, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNContinualImprovementRegistriesStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNContinualImprovementRegistriesStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus(ctx context.Context, sel ast.SelectionSet, v coredata.ContinualImprovementRegistriesStatus) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNContinualImprovementRegistriesStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus[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 (
|
|
unmarshalNContinualImprovementRegistriesStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus = map[string]coredata.ContinualImprovementRegistriesStatus{
|
|
"OPEN": coredata.ContinualImprovementRegistriesStatusOpen,
|
|
"IN_PROGRESS": coredata.ContinualImprovementRegistriesStatusInProgress,
|
|
"CLOSED": coredata.ContinualImprovementRegistriesStatusClosed,
|
|
}
|
|
marshalNContinualImprovementRegistriesStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus = map[coredata.ContinualImprovementRegistriesStatus]string{
|
|
coredata.ContinualImprovementRegistriesStatusOpen: "OPEN",
|
|
coredata.ContinualImprovementRegistriesStatusInProgress: "IN_PROGRESS",
|
|
coredata.ContinualImprovementRegistriesStatusClosed: "CLOSED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNContinualImprovementRegistry2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistry(ctx context.Context, sel ast.SelectionSet, v *types.ContinualImprovementRegistry) 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._ContinualImprovementRegistry(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNContinualImprovementRegistryConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistryConnection(ctx context.Context, sel ast.SelectionSet, v types.ContinualImprovementRegistryConnection) graphql.Marshaler {
|
|
return ec._ContinualImprovementRegistryConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNContinualImprovementRegistryConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistryConnection(ctx context.Context, sel ast.SelectionSet, v *types.ContinualImprovementRegistryConnection) 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._ContinualImprovementRegistryConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNContinualImprovementRegistryEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistryEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ContinualImprovementRegistryEdge) 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.marshalNContinualImprovementRegistryEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistryEdge(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) marshalNContinualImprovementRegistryEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistryEdge(ctx context.Context, sel ast.SelectionSet, v *types.ContinualImprovementRegistryEdge) 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._ContinualImprovementRegistryEdge(ctx, sel, v)
|
|
}
|
|
|
|
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 {
|
|
_ = sel
|
|
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,
|
|
"SECTION_TITLE": coredata.ControlOrderFieldSectionTitle,
|
|
}
|
|
marshalNControlOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlOrderField = map[coredata.ControlOrderField]string{
|
|
coredata.ControlOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.ControlOrderFieldSectionTitle: "SECTION_TITLE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNControlStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus(ctx context.Context, v any) (coredata.ControlStatus, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNControlStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNControlStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus(ctx context.Context, sel ast.SelectionSet, v coredata.ControlStatus) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNControlStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus[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 (
|
|
unmarshalNControlStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus = map[string]coredata.ControlStatus{
|
|
"INCLUDED": coredata.ControlStatusIncluded,
|
|
"EXCLUDED": coredata.ControlStatusExcluded,
|
|
}
|
|
marshalNControlStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus = map[coredata.ControlStatus]string{
|
|
coredata.ControlStatusIncluded: "INCLUDED",
|
|
coredata.ControlStatusExcluded: "EXCLUDED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNCreateAssetInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAssetInput(ctx context.Context, v any) (types.CreateAssetInput, error) {
|
|
res, err := ec.unmarshalInputCreateAssetInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateAssetPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAssetPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateAssetPayload) graphql.Marshaler {
|
|
return ec._CreateAssetPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateAssetPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAssetPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateAssetPayload) 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._CreateAssetPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateAuditInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAuditInput(ctx context.Context, v any) (types.CreateAuditInput, error) {
|
|
res, err := ec.unmarshalInputCreateAuditInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateAuditPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAuditPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateAuditPayload) graphql.Marshaler {
|
|
return ec._CreateAuditPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateAuditPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAuditPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateAuditPayload) 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._CreateAuditPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateComplianceRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceRegistryInput(ctx context.Context, v any) (types.CreateComplianceRegistryInput, error) {
|
|
res, err := ec.unmarshalInputCreateComplianceRegistryInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateComplianceRegistryPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceRegistryPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateComplianceRegistryPayload) graphql.Marshaler {
|
|
return ec._CreateComplianceRegistryPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateComplianceRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceRegistryPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateComplianceRegistryPayload) 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._CreateComplianceRegistryPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateContinualImprovementRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateContinualImprovementRegistryInput(ctx context.Context, v any) (types.CreateContinualImprovementRegistryInput, error) {
|
|
res, err := ec.unmarshalInputCreateContinualImprovementRegistryInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateContinualImprovementRegistryPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateContinualImprovementRegistryPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateContinualImprovementRegistryPayload) graphql.Marshaler {
|
|
return ec._CreateContinualImprovementRegistryPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateContinualImprovementRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateContinualImprovementRegistryPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateContinualImprovementRegistryPayload) 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._CreateContinualImprovementRegistryPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateControlAuditMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlAuditMappingInput(ctx context.Context, v any) (types.CreateControlAuditMappingInput, error) {
|
|
res, err := ec.unmarshalInputCreateControlAuditMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlAuditMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlAuditMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateControlAuditMappingPayload) graphql.Marshaler {
|
|
return ec._CreateControlAuditMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlAuditMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlAuditMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateControlAuditMappingPayload) 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._CreateControlAuditMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateControlDocumentMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlDocumentMappingInput(ctx context.Context, v any) (types.CreateControlDocumentMappingInput, error) {
|
|
res, err := ec.unmarshalInputCreateControlDocumentMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlDocumentMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateControlDocumentMappingPayload) graphql.Marshaler {
|
|
return ec._CreateControlDocumentMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlDocumentMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateControlDocumentMappingPayload) 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._CreateControlDocumentMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateControlInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlInput(ctx context.Context, v any) (types.CreateControlInput, error) {
|
|
res, err := ec.unmarshalInputCreateControlInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateControlMeasureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMeasureMappingInput(ctx context.Context, v any) (types.CreateControlMeasureMappingInput, error) {
|
|
res, err := ec.unmarshalInputCreateControlMeasureMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlMeasureMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateControlMeasureMappingPayload) graphql.Marshaler {
|
|
return ec._CreateControlMeasureMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlMeasureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateControlMeasureMappingPayload) 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._CreateControlMeasureMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateControlPayload) graphql.Marshaler {
|
|
return ec._CreateControlPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateControlPayload) 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._CreateControlPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateControlSnapshotMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlSnapshotMappingInput(ctx context.Context, v any) (types.CreateControlSnapshotMappingInput, error) {
|
|
res, err := ec.unmarshalInputCreateControlSnapshotMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlSnapshotMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlSnapshotMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateControlSnapshotMappingPayload) graphql.Marshaler {
|
|
return ec._CreateControlSnapshotMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateControlSnapshotMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlSnapshotMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateControlSnapshotMappingPayload) 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._CreateControlSnapshotMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateDatumInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDatumInput(ctx context.Context, v any) (types.CreateDatumInput, error) {
|
|
res, err := ec.unmarshalInputCreateDatumInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateDatumPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDatumPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateDatumPayload) graphql.Marshaler {
|
|
return ec._CreateDatumPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateDatumPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDatumPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateDatumPayload) 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._CreateDatumPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateDocumentInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDocumentInput(ctx context.Context, v any) (types.CreateDocumentInput, error) {
|
|
res, err := ec.unmarshalInputCreateDocumentInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateDocumentPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDocumentPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateDocumentPayload) graphql.Marshaler {
|
|
return ec._CreateDocumentPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateDocumentPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDocumentPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateDocumentPayload) 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._CreateDocumentPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateDraftDocumentVersionInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDraftDocumentVersionInput(ctx context.Context, v any) (types.CreateDraftDocumentVersionInput, error) {
|
|
res, err := ec.unmarshalInputCreateDraftDocumentVersionInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateDraftDocumentVersionPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDraftDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateDraftDocumentVersionPayload) graphql.Marshaler {
|
|
return ec._CreateDraftDocumentVersionPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateDraftDocumentVersionPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDraftDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateDraftDocumentVersionPayload) 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._CreateDraftDocumentVersionPayload(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) unmarshalNCreateMeasureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeasureInput(ctx context.Context, v any) (types.CreateMeasureInput, error) {
|
|
res, err := ec.unmarshalInputCreateMeasureInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateMeasurePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeasurePayload(ctx context.Context, sel ast.SelectionSet, v types.CreateMeasurePayload) graphql.Marshaler {
|
|
return ec._CreateMeasurePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateMeasurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeasurePayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateMeasurePayload) 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._CreateMeasurePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateNonconformityRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateNonconformityRegistryInput(ctx context.Context, v any) (types.CreateNonconformityRegistryInput, error) {
|
|
res, err := ec.unmarshalInputCreateNonconformityRegistryInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateNonconformityRegistryPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateNonconformityRegistryPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateNonconformityRegistryPayload) graphql.Marshaler {
|
|
return ec._CreateNonconformityRegistryPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateNonconformityRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateNonconformityRegistryPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateNonconformityRegistryPayload) 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._CreateNonconformityRegistryPayload(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) unmarshalNCreateProcessingActivityRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateProcessingActivityRegistryInput(ctx context.Context, v any) (types.CreateProcessingActivityRegistryInput, error) {
|
|
res, err := ec.unmarshalInputCreateProcessingActivityRegistryInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateProcessingActivityRegistryPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateProcessingActivityRegistryPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateProcessingActivityRegistryPayload) graphql.Marshaler {
|
|
return ec._CreateProcessingActivityRegistryPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateProcessingActivityRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateProcessingActivityRegistryPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateProcessingActivityRegistryPayload) 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._CreateProcessingActivityRegistryPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateRiskDocumentMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskDocumentMappingInput(ctx context.Context, v any) (types.CreateRiskDocumentMappingInput, error) {
|
|
res, err := ec.unmarshalInputCreateRiskDocumentMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateRiskDocumentMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateRiskDocumentMappingPayload) graphql.Marshaler {
|
|
return ec._CreateRiskDocumentMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateRiskDocumentMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateRiskDocumentMappingPayload) 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._CreateRiskDocumentMappingPayload(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) unmarshalNCreateRiskMeasureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMeasureMappingInput(ctx context.Context, v any) (types.CreateRiskMeasureMappingInput, error) {
|
|
res, err := ec.unmarshalInputCreateRiskMeasureMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateRiskMeasureMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateRiskMeasureMappingPayload) graphql.Marshaler {
|
|
return ec._CreateRiskMeasureMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateRiskMeasureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateRiskMeasureMappingPayload) 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._CreateRiskMeasureMappingPayload(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) unmarshalNCreateSnapshotInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateSnapshotInput(ctx context.Context, v any) (types.CreateSnapshotInput, error) {
|
|
res, err := ec.unmarshalInputCreateSnapshotInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateSnapshotPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateSnapshotPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateSnapshotPayload) graphql.Marshaler {
|
|
return ec._CreateSnapshotPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateSnapshotPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateSnapshotPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateSnapshotPayload) 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._CreateSnapshotPayload(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) unmarshalNCreateTrustCenterAccessInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterAccessInput(ctx context.Context, v any) (types.CreateTrustCenterAccessInput, error) {
|
|
res, err := ec.unmarshalInputCreateTrustCenterAccessInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateTrustCenterAccessPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateTrustCenterAccessPayload) graphql.Marshaler {
|
|
return ec._CreateTrustCenterAccessPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateTrustCenterAccessPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateTrustCenterAccessPayload) 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._CreateTrustCenterAccessPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateVendorContactInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorContactInput(ctx context.Context, v any) (types.CreateVendorContactInput, error) {
|
|
res, err := ec.unmarshalInputCreateVendorContactInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateVendorContactPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorContactPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateVendorContactPayload) graphql.Marshaler {
|
|
return ec._CreateVendorContactPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateVendorContactPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorContactPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateVendorContactPayload) 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._CreateVendorContactPayload(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) unmarshalNCreateVendorServiceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorServiceInput(ctx context.Context, v any) (types.CreateVendorServiceInput, error) {
|
|
res, err := ec.unmarshalInputCreateVendorServiceInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateVendorServicePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorServicePayload(ctx context.Context, sel ast.SelectionSet, v types.CreateVendorServicePayload) graphql.Marshaler {
|
|
return ec._CreateVendorServicePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCreateVendorServicePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorServicePayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateVendorServicePayload) 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._CreateVendorServicePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCriticityLevel2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel(ctx context.Context, v any) (coredata.CriticityLevel, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNCriticityLevel2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCriticityLevel2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel(ctx context.Context, sel ast.SelectionSet, v coredata.CriticityLevel) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNCriticityLevel2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel[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 (
|
|
unmarshalNCriticityLevel2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel = map[string]coredata.CriticityLevel{
|
|
"LOW": coredata.CriticityLevelLow,
|
|
"MEDIUM": coredata.CriticityLevelMedium,
|
|
"HIGH": coredata.CriticityLevelHigh,
|
|
}
|
|
marshalNCriticityLevel2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel = map[coredata.CriticityLevel]string{
|
|
coredata.CriticityLevelLow: "LOW",
|
|
coredata.CriticityLevelMedium: "MEDIUM",
|
|
coredata.CriticityLevelHigh: "HIGH",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNCursorKey2githubᚗcomᚋgetproboᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, v any) (page.CursorKey, error) {
|
|
res, err := cursor.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 {
|
|
_ = sel
|
|
res := cursor.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) unmarshalNDataClassification2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification(ctx context.Context, v any) (coredata.DataClassification, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNDataClassification2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDataClassification2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification(ctx context.Context, sel ast.SelectionSet, v coredata.DataClassification) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNDataClassification2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification[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 (
|
|
unmarshalNDataClassification2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification = map[string]coredata.DataClassification{
|
|
"PUBLIC": coredata.DataClassificationPublic,
|
|
"INTERNAL": coredata.DataClassificationInternal,
|
|
"CONFIDENTIAL": coredata.DataClassificationConfidential,
|
|
"SECRET": coredata.DataClassificationSecret,
|
|
}
|
|
marshalNDataClassification2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification = map[coredata.DataClassification]string{
|
|
coredata.DataClassificationPublic: "PUBLIC",
|
|
coredata.DataClassificationInternal: "INTERNAL",
|
|
coredata.DataClassificationConfidential: "CONFIDENTIAL",
|
|
coredata.DataClassificationSecret: "SECRET",
|
|
}
|
|
)
|
|
|
|
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 {
|
|
_ = sel
|
|
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 {
|
|
_ = sel
|
|
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) marshalNDatum2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatum(ctx context.Context, sel ast.SelectionSet, v *types.Datum) 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._Datum(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDatumConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumConnection(ctx context.Context, sel ast.SelectionSet, v types.DatumConnection) graphql.Marshaler {
|
|
return ec._DatumConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDatumConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumConnection(ctx context.Context, sel ast.SelectionSet, v *types.DatumConnection) 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._DatumConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDatumEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.DatumEdge) 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.marshalNDatumEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumEdge(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) marshalNDatumEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumEdge(ctx context.Context, sel ast.SelectionSet, v *types.DatumEdge) 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._DatumEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDatumOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDatumOrderField(ctx context.Context, v any) (coredata.DatumOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNDatumOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDatumOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDatumOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDatumOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.DatumOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNDatumOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDatumOrderField[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 (
|
|
unmarshalNDatumOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDatumOrderField = map[string]coredata.DatumOrderField{
|
|
"CREATED_AT": coredata.DatumOrderFieldCreatedAt,
|
|
"NAME": coredata.DatumOrderFieldName,
|
|
"DATA_CLASSIFICATION": coredata.DatumOrderFieldDataClassification,
|
|
}
|
|
marshalNDatumOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDatumOrderField = map[coredata.DatumOrderField]string{
|
|
coredata.DatumOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.DatumOrderFieldName: "NAME",
|
|
coredata.DatumOrderFieldDataClassification: "DATA_CLASSIFICATION",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNDeleteAssetInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAssetInput(ctx context.Context, v any) (types.DeleteAssetInput, error) {
|
|
res, err := ec.unmarshalInputDeleteAssetInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteAssetPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAssetPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteAssetPayload) graphql.Marshaler {
|
|
return ec._DeleteAssetPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteAssetPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAssetPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteAssetPayload) 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._DeleteAssetPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteAuditInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditInput(ctx context.Context, v any) (types.DeleteAuditInput, error) {
|
|
res, err := ec.unmarshalInputDeleteAuditInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteAuditPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteAuditPayload) graphql.Marshaler {
|
|
return ec._DeleteAuditPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteAuditPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteAuditPayload) 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._DeleteAuditPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteAuditReportInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditReportInput(ctx context.Context, v any) (types.DeleteAuditReportInput, error) {
|
|
res, err := ec.unmarshalInputDeleteAuditReportInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteAuditReportPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditReportPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteAuditReportPayload) graphql.Marshaler {
|
|
return ec._DeleteAuditReportPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteAuditReportPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditReportPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteAuditReportPayload) 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._DeleteAuditReportPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteComplianceRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceRegistryInput(ctx context.Context, v any) (types.DeleteComplianceRegistryInput, error) {
|
|
res, err := ec.unmarshalInputDeleteComplianceRegistryInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteComplianceRegistryPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceRegistryPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteComplianceRegistryPayload) graphql.Marshaler {
|
|
return ec._DeleteComplianceRegistryPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteComplianceRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceRegistryPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteComplianceRegistryPayload) 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._DeleteComplianceRegistryPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteContinualImprovementRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteContinualImprovementRegistryInput(ctx context.Context, v any) (types.DeleteContinualImprovementRegistryInput, error) {
|
|
res, err := ec.unmarshalInputDeleteContinualImprovementRegistryInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteContinualImprovementRegistryPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteContinualImprovementRegistryPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteContinualImprovementRegistryPayload) graphql.Marshaler {
|
|
return ec._DeleteContinualImprovementRegistryPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteContinualImprovementRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteContinualImprovementRegistryPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteContinualImprovementRegistryPayload) 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._DeleteContinualImprovementRegistryPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteControlAuditMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlAuditMappingInput(ctx context.Context, v any) (types.DeleteControlAuditMappingInput, error) {
|
|
res, err := ec.unmarshalInputDeleteControlAuditMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlAuditMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlAuditMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteControlAuditMappingPayload) graphql.Marshaler {
|
|
return ec._DeleteControlAuditMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlAuditMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlAuditMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteControlAuditMappingPayload) 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._DeleteControlAuditMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteControlDocumentMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlDocumentMappingInput(ctx context.Context, v any) (types.DeleteControlDocumentMappingInput, error) {
|
|
res, err := ec.unmarshalInputDeleteControlDocumentMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlDocumentMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteControlDocumentMappingPayload) graphql.Marshaler {
|
|
return ec._DeleteControlDocumentMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlDocumentMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteControlDocumentMappingPayload) 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._DeleteControlDocumentMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteControlInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlInput(ctx context.Context, v any) (types.DeleteControlInput, error) {
|
|
res, err := ec.unmarshalInputDeleteControlInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteControlMeasureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMeasureMappingInput(ctx context.Context, v any) (types.DeleteControlMeasureMappingInput, error) {
|
|
res, err := ec.unmarshalInputDeleteControlMeasureMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlMeasureMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteControlMeasureMappingPayload) graphql.Marshaler {
|
|
return ec._DeleteControlMeasureMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlMeasureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteControlMeasureMappingPayload) 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._DeleteControlMeasureMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteControlPayload) graphql.Marshaler {
|
|
return ec._DeleteControlPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteControlPayload) 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._DeleteControlPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteControlSnapshotMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlSnapshotMappingInput(ctx context.Context, v any) (types.DeleteControlSnapshotMappingInput, error) {
|
|
res, err := ec.unmarshalInputDeleteControlSnapshotMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlSnapshotMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlSnapshotMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteControlSnapshotMappingPayload) graphql.Marshaler {
|
|
return ec._DeleteControlSnapshotMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteControlSnapshotMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlSnapshotMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteControlSnapshotMappingPayload) 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._DeleteControlSnapshotMappingPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteDatumInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDatumInput(ctx context.Context, v any) (types.DeleteDatumInput, error) {
|
|
res, err := ec.unmarshalInputDeleteDatumInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteDatumPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDatumPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteDatumPayload) graphql.Marshaler {
|
|
return ec._DeleteDatumPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteDatumPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDatumPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteDatumPayload) 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._DeleteDatumPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteDocumentInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDocumentInput(ctx context.Context, v any) (types.DeleteDocumentInput, error) {
|
|
res, err := ec.unmarshalInputDeleteDocumentInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteDocumentPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDocumentPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteDocumentPayload) graphql.Marshaler {
|
|
return ec._DeleteDocumentPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteDocumentPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDocumentPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteDocumentPayload) 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._DeleteDocumentPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteDraftDocumentVersionInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDraftDocumentVersionInput(ctx context.Context, v any) (types.DeleteDraftDocumentVersionInput, error) {
|
|
res, err := ec.unmarshalInputDeleteDraftDocumentVersionInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteDraftDocumentVersionPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDraftDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteDraftDocumentVersionPayload) graphql.Marshaler {
|
|
return ec._DeleteDraftDocumentVersionPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteDraftDocumentVersionPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDraftDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteDraftDocumentVersionPayload) 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._DeleteDraftDocumentVersionPayload(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) unmarshalNDeleteMeasureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeasureInput(ctx context.Context, v any) (types.DeleteMeasureInput, error) {
|
|
res, err := ec.unmarshalInputDeleteMeasureInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteMeasurePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeasurePayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteMeasurePayload) graphql.Marshaler {
|
|
return ec._DeleteMeasurePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteMeasurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeasurePayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteMeasurePayload) 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._DeleteMeasurePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteNonconformityRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteNonconformityRegistryInput(ctx context.Context, v any) (types.DeleteNonconformityRegistryInput, error) {
|
|
res, err := ec.unmarshalInputDeleteNonconformityRegistryInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteNonconformityRegistryPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteNonconformityRegistryPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteNonconformityRegistryPayload) graphql.Marshaler {
|
|
return ec._DeleteNonconformityRegistryPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteNonconformityRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteNonconformityRegistryPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteNonconformityRegistryPayload) 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._DeleteNonconformityRegistryPayload(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) unmarshalNDeleteProcessingActivityRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteProcessingActivityRegistryInput(ctx context.Context, v any) (types.DeleteProcessingActivityRegistryInput, error) {
|
|
res, err := ec.unmarshalInputDeleteProcessingActivityRegistryInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteProcessingActivityRegistryPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteProcessingActivityRegistryPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteProcessingActivityRegistryPayload) graphql.Marshaler {
|
|
return ec._DeleteProcessingActivityRegistryPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteProcessingActivityRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteProcessingActivityRegistryPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteProcessingActivityRegistryPayload) 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._DeleteProcessingActivityRegistryPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteRiskDocumentMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskDocumentMappingInput(ctx context.Context, v any) (types.DeleteRiskDocumentMappingInput, error) {
|
|
res, err := ec.unmarshalInputDeleteRiskDocumentMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteRiskDocumentMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteRiskDocumentMappingPayload) graphql.Marshaler {
|
|
return ec._DeleteRiskDocumentMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteRiskDocumentMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteRiskDocumentMappingPayload) 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._DeleteRiskDocumentMappingPayload(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) unmarshalNDeleteRiskMeasureMappingInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMeasureMappingInput(ctx context.Context, v any) (types.DeleteRiskMeasureMappingInput, error) {
|
|
res, err := ec.unmarshalInputDeleteRiskMeasureMappingInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteRiskMeasureMappingPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteRiskMeasureMappingPayload) graphql.Marshaler {
|
|
return ec._DeleteRiskMeasureMappingPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteRiskMeasureMappingPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteRiskMeasureMappingPayload) 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._DeleteRiskMeasureMappingPayload(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) unmarshalNDeleteSnapshotInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteSnapshotInput(ctx context.Context, v any) (types.DeleteSnapshotInput, error) {
|
|
res, err := ec.unmarshalInputDeleteSnapshotInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteSnapshotPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteSnapshotPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteSnapshotPayload) graphql.Marshaler {
|
|
return ec._DeleteSnapshotPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteSnapshotPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteSnapshotPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteSnapshotPayload) 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._DeleteSnapshotPayload(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) unmarshalNDeleteTrustCenterAccessInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterAccessInput(ctx context.Context, v any) (types.DeleteTrustCenterAccessInput, error) {
|
|
res, err := ec.unmarshalInputDeleteTrustCenterAccessInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteTrustCenterAccessPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteTrustCenterAccessPayload) graphql.Marshaler {
|
|
return ec._DeleteTrustCenterAccessPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteTrustCenterAccessPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteTrustCenterAccessPayload) 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._DeleteTrustCenterAccessPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteVendorBusinessAssociateAgreementInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorBusinessAssociateAgreementInput(ctx context.Context, v any) (types.DeleteVendorBusinessAssociateAgreementInput, error) {
|
|
res, err := ec.unmarshalInputDeleteVendorBusinessAssociateAgreementInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteVendorBusinessAssociateAgreementPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteVendorBusinessAssociateAgreementPayload) graphql.Marshaler {
|
|
return ec._DeleteVendorBusinessAssociateAgreementPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteVendorBusinessAssociateAgreementPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteVendorBusinessAssociateAgreementPayload) 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._DeleteVendorBusinessAssociateAgreementPayload(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) unmarshalNDeleteVendorContactInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorContactInput(ctx context.Context, v any) (types.DeleteVendorContactInput, error) {
|
|
res, err := ec.unmarshalInputDeleteVendorContactInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteVendorContactPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorContactPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteVendorContactPayload) graphql.Marshaler {
|
|
return ec._DeleteVendorContactPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteVendorContactPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorContactPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteVendorContactPayload) 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._DeleteVendorContactPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteVendorDataPrivacyAgreementInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorDataPrivacyAgreementInput(ctx context.Context, v any) (types.DeleteVendorDataPrivacyAgreementInput, error) {
|
|
res, err := ec.unmarshalInputDeleteVendorDataPrivacyAgreementInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteVendorDataPrivacyAgreementPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteVendorDataPrivacyAgreementPayload) graphql.Marshaler {
|
|
return ec._DeleteVendorDataPrivacyAgreementPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteVendorDataPrivacyAgreementPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteVendorDataPrivacyAgreementPayload) 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._DeleteVendorDataPrivacyAgreementPayload(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) unmarshalNDeleteVendorServiceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorServiceInput(ctx context.Context, v any) (types.DeleteVendorServiceInput, error) {
|
|
res, err := ec.unmarshalInputDeleteVendorServiceInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteVendorServicePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorServicePayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteVendorServicePayload) graphql.Marshaler {
|
|
return ec._DeleteVendorServicePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDeleteVendorServicePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorServicePayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteVendorServicePayload) 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._DeleteVendorServicePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocument2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument(ctx context.Context, sel ast.SelectionSet, v types.Document) graphql.Marshaler {
|
|
return ec._Document(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocument2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument(ctx context.Context, sel ast.SelectionSet, v *types.Document) 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._Document(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentConnection(ctx context.Context, sel ast.SelectionSet, v types.DocumentConnection) graphql.Marshaler {
|
|
return ec._DocumentConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentConnection(ctx context.Context, sel ast.SelectionSet, v *types.DocumentConnection) 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._DocumentConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.DocumentEdge) 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.marshalNDocumentEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdge(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) marshalNDocumentEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdge(ctx context.Context, sel ast.SelectionSet, v *types.DocumentEdge) 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._DocumentEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDocumentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentOrderField(ctx context.Context, v any) (coredata.DocumentOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNDocumentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNDocumentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentOrderField[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 (
|
|
unmarshalNDocumentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentOrderField = map[string]coredata.DocumentOrderField{
|
|
"TITLE": coredata.DocumentOrderFieldTitle,
|
|
"CREATED_AT": coredata.DocumentOrderFieldCreatedAt,
|
|
"DOCUMENT_TYPE": coredata.DocumentOrderFieldDocumentType,
|
|
}
|
|
marshalNDocumentOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentOrderField = map[coredata.DocumentOrderField]string{
|
|
coredata.DocumentOrderFieldTitle: "TITLE",
|
|
coredata.DocumentOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.DocumentOrderFieldDocumentType: "DOCUMENT_TYPE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNDocumentStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus(ctx context.Context, v any) (coredata.DocumentStatus, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNDocumentStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentStatus) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNDocumentStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus[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 (
|
|
unmarshalNDocumentStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus = map[string]coredata.DocumentStatus{
|
|
"DRAFT": coredata.DocumentStatusDraft,
|
|
"PUBLISHED": coredata.DocumentStatusPublished,
|
|
}
|
|
marshalNDocumentStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus = map[coredata.DocumentStatus]string{
|
|
coredata.DocumentStatusDraft: "DRAFT",
|
|
coredata.DocumentStatusPublished: "PUBLISHED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNDocumentType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx context.Context, v any) (coredata.DocumentType, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNDocumentType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentType) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNDocumentType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType[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 (
|
|
unmarshalNDocumentType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType = map[string]coredata.DocumentType{
|
|
"OTHER": coredata.DocumentTypeOther,
|
|
"ISMS": coredata.DocumentTypeISMS,
|
|
"POLICY": coredata.DocumentTypePolicy,
|
|
}
|
|
marshalNDocumentType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType = map[coredata.DocumentType]string{
|
|
coredata.DocumentTypeOther: "OTHER",
|
|
coredata.DocumentTypeISMS: "ISMS",
|
|
coredata.DocumentTypePolicy: "POLICY",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNDocumentVersion2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersion(ctx context.Context, sel ast.SelectionSet, v types.DocumentVersion) graphql.Marshaler {
|
|
return ec._DocumentVersion(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentVersion2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersion(ctx context.Context, sel ast.SelectionSet, v *types.DocumentVersion) 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._DocumentVersion(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentVersionConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionConnection(ctx context.Context, sel ast.SelectionSet, v types.DocumentVersionConnection) graphql.Marshaler {
|
|
return ec._DocumentVersionConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentVersionConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionConnection(ctx context.Context, sel ast.SelectionSet, v *types.DocumentVersionConnection) 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._DocumentVersionConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentVersionEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.DocumentVersionEdge) 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.marshalNDocumentVersionEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdge(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) marshalNDocumentVersionEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdge(ctx context.Context, sel ast.SelectionSet, v *types.DocumentVersionEdge) 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._DocumentVersionEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDocumentVersionOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField(ctx context.Context, v any) (coredata.DocumentVersionOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNDocumentVersionOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentVersionOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentVersionOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNDocumentVersionOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField[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 (
|
|
unmarshalNDocumentVersionOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField = map[string]coredata.DocumentVersionOrderField{
|
|
"VERSION": coredata.DocumentVersionOrderFieldVersion,
|
|
"CREATED_AT": coredata.DocumentVersionOrderFieldCreatedAt,
|
|
}
|
|
marshalNDocumentVersionOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField = map[coredata.DocumentVersionOrderField]string{
|
|
coredata.DocumentVersionOrderFieldVersion: "VERSION",
|
|
coredata.DocumentVersionOrderFieldCreatedAt: "CREATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNDocumentVersionSignature2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignature(ctx context.Context, sel ast.SelectionSet, v *types.DocumentVersionSignature) 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._DocumentVersionSignature(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentVersionSignatureConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureConnection(ctx context.Context, sel ast.SelectionSet, v types.DocumentVersionSignatureConnection) graphql.Marshaler {
|
|
return ec._DocumentVersionSignatureConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentVersionSignatureConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureConnection(ctx context.Context, sel ast.SelectionSet, v *types.DocumentVersionSignatureConnection) 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._DocumentVersionSignatureConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentVersionSignatureEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.DocumentVersionSignatureEdge) 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.marshalNDocumentVersionSignatureEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureEdge(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) marshalNDocumentVersionSignatureEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureEdge(ctx context.Context, sel ast.SelectionSet, v *types.DocumentVersionSignatureEdge) 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._DocumentVersionSignatureEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDocumentVersionSignatureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField(ctx context.Context, v any) (coredata.DocumentVersionSignatureOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNDocumentVersionSignatureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentVersionSignatureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentVersionSignatureOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNDocumentVersionSignatureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField[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 (
|
|
unmarshalNDocumentVersionSignatureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField = map[string]coredata.DocumentVersionSignatureOrderField{
|
|
"CREATED_AT": coredata.DocumentVersionSignatureOrderFieldCreatedAt,
|
|
"SIGNED_AT": coredata.DocumentVersionSignatureOrderFieldSignedAt,
|
|
}
|
|
marshalNDocumentVersionSignatureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField = map[coredata.DocumentVersionSignatureOrderField]string{
|
|
coredata.DocumentVersionSignatureOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.DocumentVersionSignatureOrderFieldSignedAt: "SIGNED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNDocumentVersionSignatureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState(ctx context.Context, v any) (coredata.DocumentVersionSignatureState, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNDocumentVersionSignatureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDocumentVersionSignatureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentVersionSignatureState) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNDocumentVersionSignatureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState[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 (
|
|
unmarshalNDocumentVersionSignatureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState = map[string]coredata.DocumentVersionSignatureState{
|
|
"REQUESTED": coredata.DocumentVersionSignatureStateRequested,
|
|
"SIGNED": coredata.DocumentVersionSignatureStateSigned,
|
|
}
|
|
marshalNDocumentVersionSignatureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState = map[coredata.DocumentVersionSignatureState]string{
|
|
coredata.DocumentVersionSignatureStateRequested: "REQUESTED",
|
|
coredata.DocumentVersionSignatureStateSigned: "SIGNED",
|
|
}
|
|
)
|
|
|
|
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 {
|
|
_ = sel
|
|
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 {
|
|
_ = sel
|
|
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 {
|
|
_ = sel
|
|
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) unmarshalNExportDocumentVersionPDFInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDocumentVersionPDFInput(ctx context.Context, v any) (types.ExportDocumentVersionPDFInput, error) {
|
|
res, err := ec.unmarshalInputExportDocumentVersionPDFInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNExportDocumentVersionPDFPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDocumentVersionPDFPayload(ctx context.Context, sel ast.SelectionSet, v types.ExportDocumentVersionPDFPayload) graphql.Marshaler {
|
|
return ec._ExportDocumentVersionPDFPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNExportDocumentVersionPDFPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDocumentVersionPDFPayload(ctx context.Context, sel ast.SelectionSet, v *types.ExportDocumentVersionPDFPayload) 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._ExportDocumentVersionPDFPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNFramework2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFramework(ctx context.Context, sel ast.SelectionSet, v types.Framework) graphql.Marshaler {
|
|
return ec._Framework(ctx, sel, &v)
|
|
}
|
|
|
|
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 {
|
|
_ = sel
|
|
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) unmarshalNGenerateDocumentChangelogInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateDocumentChangelogInput(ctx context.Context, v any) (types.GenerateDocumentChangelogInput, error) {
|
|
res, err := ec.unmarshalInputGenerateDocumentChangelogInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNGenerateDocumentChangelogPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateDocumentChangelogPayload(ctx context.Context, sel ast.SelectionSet, v types.GenerateDocumentChangelogPayload) graphql.Marshaler {
|
|
return ec._GenerateDocumentChangelogPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNGenerateDocumentChangelogPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateDocumentChangelogPayload(ctx context.Context, sel ast.SelectionSet, v *types.GenerateDocumentChangelogPayload) 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._GenerateDocumentChangelogPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNGenerateFrameworkStateOfApplicabilityInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateFrameworkStateOfApplicabilityInput(ctx context.Context, v any) (types.GenerateFrameworkStateOfApplicabilityInput, error) {
|
|
res, err := ec.unmarshalInputGenerateFrameworkStateOfApplicabilityInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNGenerateFrameworkStateOfApplicabilityPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateFrameworkStateOfApplicabilityPayload(ctx context.Context, sel ast.SelectionSet, v types.GenerateFrameworkStateOfApplicabilityPayload) graphql.Marshaler {
|
|
return ec._GenerateFrameworkStateOfApplicabilityPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNGenerateFrameworkStateOfApplicabilityPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateFrameworkStateOfApplicabilityPayload(ctx context.Context, sel ast.SelectionSet, v *types.GenerateFrameworkStateOfApplicabilityPayload) 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._GenerateFrameworkStateOfApplicabilityPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, v any) (gid.GID, error) {
|
|
res, err := gid1.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 {
|
|
_ = sel
|
|
res := gid1.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) unmarshalNID2ᚕgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx context.Context, v any) ([]gid.GID, error) {
|
|
var vSlice []any
|
|
vSlice = graphql.CoerceList(v)
|
|
var err error
|
|
res := make([]gid.GID, len(vSlice))
|
|
for i := range vSlice {
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
|
|
res[i], err = ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, vSlice[i])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
return res, nil
|
|
}
|
|
|
|
func (ec *executionContext) marshalNID2ᚕgithubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx context.Context, sel ast.SelectionSet, v []gid.GID) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
for i := range v {
|
|
ret[i] = ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, sel, v[i])
|
|
}
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
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) unmarshalNImportMeasureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMeasureInput(ctx context.Context, v any) (types.ImportMeasureInput, error) {
|
|
res, err := ec.unmarshalInputImportMeasureInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNImportMeasurePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMeasurePayload(ctx context.Context, sel ast.SelectionSet, v types.ImportMeasurePayload) graphql.Marshaler {
|
|
return ec._ImportMeasurePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNImportMeasurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMeasurePayload(ctx context.Context, sel ast.SelectionSet, v *types.ImportMeasurePayload) 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._ImportMeasurePayload(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 {
|
|
_ = sel
|
|
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) marshalNMeasure2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure(ctx context.Context, sel ast.SelectionSet, v types.Measure) graphql.Marshaler {
|
|
return ec._Measure(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMeasure2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure(ctx context.Context, sel ast.SelectionSet, v *types.Measure) 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._Measure(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMeasureConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureConnection(ctx context.Context, sel ast.SelectionSet, v types.MeasureConnection) graphql.Marshaler {
|
|
return ec._MeasureConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMeasureConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureConnection(ctx context.Context, sel ast.SelectionSet, v *types.MeasureConnection) 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._MeasureConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMeasureEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.MeasureEdge) 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.marshalNMeasureEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdge(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) marshalNMeasureEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdge(ctx context.Context, sel ast.SelectionSet, v *types.MeasureEdge) 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._MeasureEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNMeasureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureOrderField(ctx context.Context, v any) (coredata.MeasureOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNMeasureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMeasureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.MeasureOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNMeasureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureOrderField[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 (
|
|
unmarshalNMeasureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureOrderField = map[string]coredata.MeasureOrderField{
|
|
"CREATED_AT": coredata.MeasureOrderFieldCreatedAt,
|
|
}
|
|
marshalNMeasureOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureOrderField = map[coredata.MeasureOrderField]string{
|
|
coredata.MeasureOrderFieldCreatedAt: "CREATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNMeasureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState(ctx context.Context, v any) (coredata.MeasureState, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNMeasureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMeasureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState(ctx context.Context, sel ast.SelectionSet, v coredata.MeasureState) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNMeasureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState[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 (
|
|
unmarshalNMeasureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState = map[string]coredata.MeasureState{
|
|
"NOT_STARTED": coredata.MeasureStateNotStarted,
|
|
"IN_PROGRESS": coredata.MeasureStateInProgress,
|
|
"NOT_APPLICABLE": coredata.MeasureStateNotApplicable,
|
|
"IMPLEMENTED": coredata.MeasureStateImplemented,
|
|
}
|
|
marshalNMeasureState2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState = map[coredata.MeasureState]string{
|
|
coredata.MeasureStateNotStarted: "NOT_STARTED",
|
|
coredata.MeasureStateInProgress: "IN_PROGRESS",
|
|
coredata.MeasureStateNotApplicable: "NOT_APPLICABLE",
|
|
coredata.MeasureStateImplemented: "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) marshalNNonconformityRegistry2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistry(ctx context.Context, sel ast.SelectionSet, v *types.NonconformityRegistry) 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._NonconformityRegistry(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNNonconformityRegistryConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistryConnection(ctx context.Context, sel ast.SelectionSet, v types.NonconformityRegistryConnection) graphql.Marshaler {
|
|
return ec._NonconformityRegistryConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNNonconformityRegistryConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistryConnection(ctx context.Context, sel ast.SelectionSet, v *types.NonconformityRegistryConnection) 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._NonconformityRegistryConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNNonconformityRegistryEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistryEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.NonconformityRegistryEdge) 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.marshalNNonconformityRegistryEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistryEdge(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) marshalNNonconformityRegistryEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistryEdge(ctx context.Context, sel ast.SelectionSet, v *types.NonconformityRegistryEdge) 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._NonconformityRegistryEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNNonconformityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryOrderField(ctx context.Context, v any) (coredata.NonconformityRegistryOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNNonconformityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNNonconformityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.NonconformityRegistryOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNNonconformityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryOrderField[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 (
|
|
unmarshalNNonconformityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryOrderField = map[string]coredata.NonconformityRegistryOrderField{
|
|
"CREATED_AT": coredata.NonconformityRegistryOrderFieldCreatedAt,
|
|
"REFERENCE_ID": coredata.NonconformityRegistryOrderFieldReferenceId,
|
|
"DATE_IDENTIFIED": coredata.NonconformityRegistryOrderFieldDateIdentified,
|
|
"DUE_DATE": coredata.NonconformityRegistryOrderFieldDueDate,
|
|
"STATUS": coredata.NonconformityRegistryOrderFieldStatus,
|
|
}
|
|
marshalNNonconformityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryOrderField = map[coredata.NonconformityRegistryOrderField]string{
|
|
coredata.NonconformityRegistryOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.NonconformityRegistryOrderFieldReferenceId: "REFERENCE_ID",
|
|
coredata.NonconformityRegistryOrderFieldDateIdentified: "DATE_IDENTIFIED",
|
|
coredata.NonconformityRegistryOrderFieldDueDate: "DUE_DATE",
|
|
coredata.NonconformityRegistryOrderFieldStatus: "STATUS",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNNonconformityRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus(ctx context.Context, v any) (coredata.NonconformityRegistryStatus, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNNonconformityRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNNonconformityRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus(ctx context.Context, sel ast.SelectionSet, v coredata.NonconformityRegistryStatus) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNNonconformityRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus[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 (
|
|
unmarshalNNonconformityRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus = map[string]coredata.NonconformityRegistryStatus{
|
|
"OPEN": coredata.NonconformityRegistryStatusOpen,
|
|
"IN_PROGRESS": coredata.NonconformityRegistryStatusInProgress,
|
|
"CLOSED": coredata.NonconformityRegistryStatusClosed,
|
|
}
|
|
marshalNNonconformityRegistryStatus2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus = map[coredata.NonconformityRegistryStatus]string{
|
|
coredata.NonconformityRegistryStatusOpen: "OPEN",
|
|
coredata.NonconformityRegistryStatusInProgress: "IN_PROGRESS",
|
|
coredata.NonconformityRegistryStatusClosed: "CLOSED",
|
|
}
|
|
)
|
|
|
|
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 {
|
|
_ = sel
|
|
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) marshalNOrganization2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization(ctx context.Context, sel ast.SelectionSet, v types.Organization) graphql.Marshaler {
|
|
return ec._Organization(ctx, sel, &v)
|
|
}
|
|
|
|
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ᚋcoredataᚐOrganizationOrderField(ctx context.Context, v any) (coredata.OrganizationOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNOrganizationOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐOrganizationOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNOrganizationOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐOrganizationOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.OrganizationOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNOrganizationOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐOrganizationOrderField[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 (
|
|
unmarshalNOrganizationOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐOrganizationOrderField = map[string]coredata.OrganizationOrderField{
|
|
"NAME": coredata.OrganizationOrderFieldName,
|
|
"CREATED_AT": coredata.OrganizationOrderFieldCreatedAt,
|
|
"UPDATED_AT": coredata.OrganizationOrderFieldUpdatedAt,
|
|
}
|
|
marshalNOrganizationOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐOrganizationOrderField = map[coredata.OrganizationOrderField]string{
|
|
coredata.OrganizationOrderFieldName: "NAME",
|
|
coredata.OrganizationOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.OrganizationOrderFieldUpdatedAt: "UPDATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNPageInfo2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v types.PageInfo) graphql.Marshaler {
|
|
return ec._PageInfo(ctx, sel, &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 {
|
|
_ = sel
|
|
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 {
|
|
_ = sel
|
|
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,
|
|
"KIND": coredata.PeopleOrderFieldKind,
|
|
}
|
|
marshalNPeopleOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐPeopleOrderField = map[coredata.PeopleOrderField]string{
|
|
coredata.PeopleOrderFieldFullName: "FULL_NAME",
|
|
coredata.PeopleOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.PeopleOrderFieldKind: "KIND",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNProcessingActivityRegistry2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistry(ctx context.Context, sel ast.SelectionSet, v *types.ProcessingActivityRegistry) 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._ProcessingActivityRegistry(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNProcessingActivityRegistryConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistryConnection(ctx context.Context, sel ast.SelectionSet, v types.ProcessingActivityRegistryConnection) graphql.Marshaler {
|
|
return ec._ProcessingActivityRegistryConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNProcessingActivityRegistryConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistryConnection(ctx context.Context, sel ast.SelectionSet, v *types.ProcessingActivityRegistryConnection) 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._ProcessingActivityRegistryConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNProcessingActivityRegistryDataProtectionImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment(ctx context.Context, v any) (coredata.ProcessingActivityRegistryDataProtectionImpactAssessment, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNProcessingActivityRegistryDataProtectionImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNProcessingActivityRegistryDataProtectionImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment(ctx context.Context, sel ast.SelectionSet, v coredata.ProcessingActivityRegistryDataProtectionImpactAssessment) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNProcessingActivityRegistryDataProtectionImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment[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 (
|
|
unmarshalNProcessingActivityRegistryDataProtectionImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment = map[string]coredata.ProcessingActivityRegistryDataProtectionImpactAssessment{
|
|
"NEEDED": coredata.ProcessingActivityRegistryDataProtectionImpactAssessmentNeeded,
|
|
"NOT_NEEDED": coredata.ProcessingActivityRegistryDataProtectionImpactAssessmentNotNeeded,
|
|
}
|
|
marshalNProcessingActivityRegistryDataProtectionImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment = map[coredata.ProcessingActivityRegistryDataProtectionImpactAssessment]string{
|
|
coredata.ProcessingActivityRegistryDataProtectionImpactAssessmentNeeded: "NEEDED",
|
|
coredata.ProcessingActivityRegistryDataProtectionImpactAssessmentNotNeeded: "NOT_NEEDED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNProcessingActivityRegistryEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistryEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ProcessingActivityRegistryEdge) 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.marshalNProcessingActivityRegistryEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistryEdge(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) marshalNProcessingActivityRegistryEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistryEdge(ctx context.Context, sel ast.SelectionSet, v *types.ProcessingActivityRegistryEdge) 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._ProcessingActivityRegistryEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNProcessingActivityRegistryLawfulBasis2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis(ctx context.Context, v any) (coredata.ProcessingActivityRegistryLawfulBasis, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNProcessingActivityRegistryLawfulBasis2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNProcessingActivityRegistryLawfulBasis2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis(ctx context.Context, sel ast.SelectionSet, v coredata.ProcessingActivityRegistryLawfulBasis) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNProcessingActivityRegistryLawfulBasis2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis[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 (
|
|
unmarshalNProcessingActivityRegistryLawfulBasis2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis = map[string]coredata.ProcessingActivityRegistryLawfulBasis{
|
|
"LEGITIMATE_INTEREST": coredata.ProcessingActivityRegistryLawfulBasisLegitimateInterest,
|
|
"CONSENT": coredata.ProcessingActivityRegistryLawfulBasisConsent,
|
|
"CONTRACTUAL_NECESSITY": coredata.ProcessingActivityRegistryLawfulBasisContractualNecessity,
|
|
"LEGAL_OBLIGATION": coredata.ProcessingActivityRegistryLawfulBasisLegalObligation,
|
|
"VITAL_INTERESTS": coredata.ProcessingActivityRegistryLawfulBasisVitalInterests,
|
|
"PUBLIC_TASK": coredata.ProcessingActivityRegistryLawfulBasisPublicTask,
|
|
}
|
|
marshalNProcessingActivityRegistryLawfulBasis2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis = map[coredata.ProcessingActivityRegistryLawfulBasis]string{
|
|
coredata.ProcessingActivityRegistryLawfulBasisLegitimateInterest: "LEGITIMATE_INTEREST",
|
|
coredata.ProcessingActivityRegistryLawfulBasisConsent: "CONSENT",
|
|
coredata.ProcessingActivityRegistryLawfulBasisContractualNecessity: "CONTRACTUAL_NECESSITY",
|
|
coredata.ProcessingActivityRegistryLawfulBasisLegalObligation: "LEGAL_OBLIGATION",
|
|
coredata.ProcessingActivityRegistryLawfulBasisVitalInterests: "VITAL_INTERESTS",
|
|
coredata.ProcessingActivityRegistryLawfulBasisPublicTask: "PUBLIC_TASK",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNProcessingActivityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryOrderField(ctx context.Context, v any) (coredata.ProcessingActivityRegistryOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNProcessingActivityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNProcessingActivityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.ProcessingActivityRegistryOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNProcessingActivityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryOrderField[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 (
|
|
unmarshalNProcessingActivityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryOrderField = map[string]coredata.ProcessingActivityRegistryOrderField{
|
|
"CREATED_AT": coredata.ProcessingActivityRegistryOrderFieldCreatedAt,
|
|
"NAME": coredata.ProcessingActivityRegistryOrderFieldName,
|
|
}
|
|
marshalNProcessingActivityRegistryOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryOrderField = map[coredata.ProcessingActivityRegistryOrderField]string{
|
|
coredata.ProcessingActivityRegistryOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.ProcessingActivityRegistryOrderFieldName: "NAME",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNProcessingActivityRegistrySpecialOrCriminalData2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData(ctx context.Context, v any) (coredata.ProcessingActivityRegistrySpecialOrCriminalData, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNProcessingActivityRegistrySpecialOrCriminalData2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNProcessingActivityRegistrySpecialOrCriminalData2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData(ctx context.Context, sel ast.SelectionSet, v coredata.ProcessingActivityRegistrySpecialOrCriminalData) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNProcessingActivityRegistrySpecialOrCriminalData2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData[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 (
|
|
unmarshalNProcessingActivityRegistrySpecialOrCriminalData2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData = map[string]coredata.ProcessingActivityRegistrySpecialOrCriminalData{
|
|
"YES": coredata.ProcessingActivityRegistrySpecialOrCriminalDataYes,
|
|
"NO": coredata.ProcessingActivityRegistrySpecialOrCriminalDataNo,
|
|
"POSSIBLE": coredata.ProcessingActivityRegistrySpecialOrCriminalDataPossible,
|
|
}
|
|
marshalNProcessingActivityRegistrySpecialOrCriminalData2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData = map[coredata.ProcessingActivityRegistrySpecialOrCriminalData]string{
|
|
coredata.ProcessingActivityRegistrySpecialOrCriminalDataYes: "YES",
|
|
coredata.ProcessingActivityRegistrySpecialOrCriminalDataNo: "NO",
|
|
coredata.ProcessingActivityRegistrySpecialOrCriminalDataPossible: "POSSIBLE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNProcessingActivityRegistryTransferImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment(ctx context.Context, v any) (coredata.ProcessingActivityRegistryTransferImpactAssessment, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNProcessingActivityRegistryTransferImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNProcessingActivityRegistryTransferImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment(ctx context.Context, sel ast.SelectionSet, v coredata.ProcessingActivityRegistryTransferImpactAssessment) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNProcessingActivityRegistryTransferImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment[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 (
|
|
unmarshalNProcessingActivityRegistryTransferImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment = map[string]coredata.ProcessingActivityRegistryTransferImpactAssessment{
|
|
"NEEDED": coredata.ProcessingActivityRegistryTransferImpactAssessmentNeeded,
|
|
"NOT_NEEDED": coredata.ProcessingActivityRegistryTransferImpactAssessmentNotNeeded,
|
|
}
|
|
marshalNProcessingActivityRegistryTransferImpactAssessment2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment = map[coredata.ProcessingActivityRegistryTransferImpactAssessment]string{
|
|
coredata.ProcessingActivityRegistryTransferImpactAssessmentNeeded: "NEEDED",
|
|
coredata.ProcessingActivityRegistryTransferImpactAssessmentNotNeeded: "NOT_NEEDED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNPublishDocumentVersionInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPublishDocumentVersionInput(ctx context.Context, v any) (types.PublishDocumentVersionInput, error) {
|
|
res, err := ec.unmarshalInputPublishDocumentVersionInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPublishDocumentVersionPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPublishDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v types.PublishDocumentVersionPayload) graphql.Marshaler {
|
|
return ec._PublishDocumentVersionPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPublishDocumentVersionPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPublishDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v *types.PublishDocumentVersionPayload) 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._PublishDocumentVersionPayload(ctx, sel, v)
|
|
}
|
|
|
|
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) unmarshalNRequestSignatureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestSignatureInput(ctx context.Context, v any) (types.RequestSignatureInput, error) {
|
|
res, err := ec.unmarshalInputRequestSignatureInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRequestSignaturePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestSignaturePayload(ctx context.Context, sel ast.SelectionSet, v types.RequestSignaturePayload) graphql.Marshaler {
|
|
return ec._RequestSignaturePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRequestSignaturePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestSignaturePayload(ctx context.Context, sel ast.SelectionSet, v *types.RequestSignaturePayload) 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._RequestSignaturePayload(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 {
|
|
_ = sel
|
|
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,
|
|
"UPDATED_AT": coredata.RiskOrderFieldUpdatedAt,
|
|
"NAME": coredata.RiskOrderFieldName,
|
|
"CATEGORY": coredata.RiskOrderFieldCategory,
|
|
"TREATMENT": coredata.RiskOrderFieldTreatment,
|
|
"INHERENT_RISK_SCORE": coredata.RiskOrderFieldInherentRiskScore,
|
|
"RESIDUAL_RISK_SCORE": coredata.RiskOrderFieldResidualRiskScore,
|
|
}
|
|
marshalNRiskOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐRiskOrderField = map[coredata.RiskOrderField]string{
|
|
coredata.RiskOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.RiskOrderFieldUpdatedAt: "UPDATED_AT",
|
|
coredata.RiskOrderFieldName: "NAME",
|
|
coredata.RiskOrderFieldCategory: "CATEGORY",
|
|
coredata.RiskOrderFieldTreatment: "TREATMENT",
|
|
coredata.RiskOrderFieldInherentRiskScore: "INHERENT_RISK_SCORE",
|
|
coredata.RiskOrderFieldResidualRiskScore: "RESIDUAL_RISK_SCORE",
|
|
}
|
|
)
|
|
|
|
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 {
|
|
_ = sel
|
|
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) unmarshalNSendSigningNotificationsInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendSigningNotificationsInput(ctx context.Context, v any) (types.SendSigningNotificationsInput, error) {
|
|
res, err := ec.unmarshalInputSendSigningNotificationsInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSendSigningNotificationsPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendSigningNotificationsPayload(ctx context.Context, sel ast.SelectionSet, v types.SendSigningNotificationsPayload) graphql.Marshaler {
|
|
return ec._SendSigningNotificationsPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSendSigningNotificationsPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendSigningNotificationsPayload(ctx context.Context, sel ast.SelectionSet, v *types.SendSigningNotificationsPayload) 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._SendSigningNotificationsPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSnapshot2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshot(ctx context.Context, sel ast.SelectionSet, v *types.Snapshot) 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._Snapshot(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSnapshotConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotConnection(ctx context.Context, sel ast.SelectionSet, v types.SnapshotConnection) graphql.Marshaler {
|
|
return ec._SnapshotConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSnapshotConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotConnection(ctx context.Context, sel ast.SelectionSet, v *types.SnapshotConnection) 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._SnapshotConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSnapshotEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.SnapshotEdge) 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.marshalNSnapshotEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotEdge(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) marshalNSnapshotEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotEdge(ctx context.Context, sel ast.SelectionSet, v *types.SnapshotEdge) 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._SnapshotEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNSnapshotOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField(ctx context.Context, v any) (coredata.SnapshotOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNSnapshotOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSnapshotOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.SnapshotOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNSnapshotOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField[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 (
|
|
unmarshalNSnapshotOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField = map[string]coredata.SnapshotOrderField{
|
|
"CREATED_AT": coredata.SnapshotOrderFieldCreatedAt,
|
|
"NAME": coredata.SnapshotOrderFieldName,
|
|
"TYPE": coredata.SnapshotOrderFieldType,
|
|
}
|
|
marshalNSnapshotOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField = map[coredata.SnapshotOrderField]string{
|
|
coredata.SnapshotOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.SnapshotOrderFieldName: "NAME",
|
|
coredata.SnapshotOrderFieldType: "TYPE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNSnapshotsType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotsType(ctx context.Context, v any) (coredata.SnapshotsType, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNSnapshotsType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotsType[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSnapshotsType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotsType(ctx context.Context, sel ast.SelectionSet, v coredata.SnapshotsType) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNSnapshotsType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotsType[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 (
|
|
unmarshalNSnapshotsType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotsType = map[string]coredata.SnapshotsType{
|
|
"RISKS": coredata.SnapshotsTypeRisks,
|
|
"VENDORS": coredata.SnapshotsTypeVendors,
|
|
"ASSETS": coredata.SnapshotsTypeAssets,
|
|
"DATA": coredata.SnapshotsTypeData,
|
|
"NONCONFORMITY_REGISTRIES": coredata.SnapshotsTypeNonConformityRegistries,
|
|
"COMPLIANCE_REGISTRIES": coredata.SnapshotsTypeComplianceRegistries,
|
|
"CONTINUAL_IMPROVEMENT_REGISTRIES": coredata.SnapshotsTypeContinualImprovementRegistries,
|
|
"PROCESSING_ACTIVITY_REGISTRIES": coredata.SnapshotsTypeProcessingActivityRegistries,
|
|
}
|
|
marshalNSnapshotsType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐSnapshotsType = map[coredata.SnapshotsType]string{
|
|
coredata.SnapshotsTypeRisks: "RISKS",
|
|
coredata.SnapshotsTypeVendors: "VENDORS",
|
|
coredata.SnapshotsTypeAssets: "ASSETS",
|
|
coredata.SnapshotsTypeData: "DATA",
|
|
coredata.SnapshotsTypeNonConformityRegistries: "NONCONFORMITY_REGISTRIES",
|
|
coredata.SnapshotsTypeComplianceRegistries: "COMPLIANCE_REGISTRIES",
|
|
coredata.SnapshotsTypeContinualImprovementRegistries: "CONTINUAL_IMPROVEMENT_REGISTRIES",
|
|
coredata.SnapshotsTypeProcessingActivityRegistries: "PROCESSING_ACTIVITY_REGISTRIES",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) {
|
|
res, err := graphql.UnmarshalString(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
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 {
|
|
_ = sel
|
|
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 {
|
|
_ = sel
|
|
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) marshalNTrustCenter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenter(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenter) 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._TrustCenter(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNTrustCenterAccess2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccess(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterAccess) 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._TrustCenterAccess(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNTrustCenterAccessConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessConnection(ctx context.Context, sel ast.SelectionSet, v types.TrustCenterAccessConnection) graphql.Marshaler {
|
|
return ec._TrustCenterAccessConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNTrustCenterAccessConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessConnection(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterAccessConnection) 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._TrustCenterAccessConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNTrustCenterAccessEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.TrustCenterAccessEdge) 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.marshalNTrustCenterAccessEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessEdge(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) marshalNTrustCenterAccessEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessEdge(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterAccessEdge) 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._TrustCenterAccessEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNTrustCenterAccessOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField(ctx context.Context, v any) (coredata.TrustCenterAccessOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNTrustCenterAccessOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNTrustCenterAccessOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.TrustCenterAccessOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNTrustCenterAccessOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField[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 (
|
|
unmarshalNTrustCenterAccessOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField = map[string]coredata.TrustCenterAccessOrderField{
|
|
"CREATED_AT": coredata.TrustCenterAccessOrderFieldCreatedAt,
|
|
}
|
|
marshalNTrustCenterAccessOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField = map[coredata.TrustCenterAccessOrderField]string{
|
|
coredata.TrustCenterAccessOrderFieldCreatedAt: "CREATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNTrustCenterEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.TrustCenterEdge) 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.marshalNTrustCenterEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterEdge(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) marshalNTrustCenterEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterEdge(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterEdge) 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._TrustCenterEdge(ctx, sel, v)
|
|
}
|
|
|
|
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) unmarshalNUpdateAssetInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAssetInput(ctx context.Context, v any) (types.UpdateAssetInput, error) {
|
|
res, err := ec.unmarshalInputUpdateAssetInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateAssetPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAssetPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateAssetPayload) graphql.Marshaler {
|
|
return ec._UpdateAssetPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateAssetPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAssetPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateAssetPayload) 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._UpdateAssetPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateAuditInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAuditInput(ctx context.Context, v any) (types.UpdateAuditInput, error) {
|
|
res, err := ec.unmarshalInputUpdateAuditInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateAuditPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAuditPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateAuditPayload) graphql.Marshaler {
|
|
return ec._UpdateAuditPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateAuditPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAuditPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateAuditPayload) 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._UpdateAuditPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateComplianceRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceRegistryInput(ctx context.Context, v any) (types.UpdateComplianceRegistryInput, error) {
|
|
res, err := ec.unmarshalInputUpdateComplianceRegistryInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateComplianceRegistryPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceRegistryPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateComplianceRegistryPayload) graphql.Marshaler {
|
|
return ec._UpdateComplianceRegistryPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateComplianceRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceRegistryPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateComplianceRegistryPayload) 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._UpdateComplianceRegistryPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateContinualImprovementRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateContinualImprovementRegistryInput(ctx context.Context, v any) (types.UpdateContinualImprovementRegistryInput, error) {
|
|
res, err := ec.unmarshalInputUpdateContinualImprovementRegistryInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateContinualImprovementRegistryPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateContinualImprovementRegistryPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateContinualImprovementRegistryPayload) graphql.Marshaler {
|
|
return ec._UpdateContinualImprovementRegistryPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateContinualImprovementRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateContinualImprovementRegistryPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateContinualImprovementRegistryPayload) 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._UpdateContinualImprovementRegistryPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateControlInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateControlInput(ctx context.Context, v any) (types.UpdateControlInput, error) {
|
|
res, err := ec.unmarshalInputUpdateControlInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateControlPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateControlPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateControlPayload) graphql.Marshaler {
|
|
return ec._UpdateControlPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateControlPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateControlPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateControlPayload) 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._UpdateControlPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateDatumInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDatumInput(ctx context.Context, v any) (types.UpdateDatumInput, error) {
|
|
res, err := ec.unmarshalInputUpdateDatumInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateDatumPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDatumPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateDatumPayload) graphql.Marshaler {
|
|
return ec._UpdateDatumPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateDatumPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDatumPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateDatumPayload) 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._UpdateDatumPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateDocumentInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentInput(ctx context.Context, v any) (types.UpdateDocumentInput, error) {
|
|
res, err := ec.unmarshalInputUpdateDocumentInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateDocumentPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateDocumentPayload) graphql.Marshaler {
|
|
return ec._UpdateDocumentPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateDocumentPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateDocumentPayload) 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._UpdateDocumentPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateDocumentVersionInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentVersionInput(ctx context.Context, v any) (types.UpdateDocumentVersionInput, error) {
|
|
res, err := ec.unmarshalInputUpdateDocumentVersionInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateDocumentVersionPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateDocumentVersionPayload) graphql.Marshaler {
|
|
return ec._UpdateDocumentVersionPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateDocumentVersionPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateDocumentVersionPayload) 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._UpdateDocumentVersionPayload(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) unmarshalNUpdateMeasureInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeasureInput(ctx context.Context, v any) (types.UpdateMeasureInput, error) {
|
|
res, err := ec.unmarshalInputUpdateMeasureInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateMeasurePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeasurePayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateMeasurePayload) graphql.Marshaler {
|
|
return ec._UpdateMeasurePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateMeasurePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeasurePayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateMeasurePayload) 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._UpdateMeasurePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateNonconformityRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateNonconformityRegistryInput(ctx context.Context, v any) (types.UpdateNonconformityRegistryInput, error) {
|
|
res, err := ec.unmarshalInputUpdateNonconformityRegistryInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateNonconformityRegistryPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateNonconformityRegistryPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateNonconformityRegistryPayload) graphql.Marshaler {
|
|
return ec._UpdateNonconformityRegistryPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateNonconformityRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateNonconformityRegistryPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateNonconformityRegistryPayload) 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._UpdateNonconformityRegistryPayload(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) unmarshalNUpdateProcessingActivityRegistryInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateProcessingActivityRegistryInput(ctx context.Context, v any) (types.UpdateProcessingActivityRegistryInput, error) {
|
|
res, err := ec.unmarshalInputUpdateProcessingActivityRegistryInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateProcessingActivityRegistryPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateProcessingActivityRegistryPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateProcessingActivityRegistryPayload) graphql.Marshaler {
|
|
return ec._UpdateProcessingActivityRegistryPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateProcessingActivityRegistryPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateProcessingActivityRegistryPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateProcessingActivityRegistryPayload) 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._UpdateProcessingActivityRegistryPayload(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) unmarshalNUpdateTrustCenterAccessInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterAccessInput(ctx context.Context, v any) (types.UpdateTrustCenterAccessInput, error) {
|
|
res, err := ec.unmarshalInputUpdateTrustCenterAccessInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateTrustCenterAccessPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateTrustCenterAccessPayload) graphql.Marshaler {
|
|
return ec._UpdateTrustCenterAccessPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateTrustCenterAccessPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateTrustCenterAccessPayload) 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._UpdateTrustCenterAccessPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateTrustCenterInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterInput(ctx context.Context, v any) (types.UpdateTrustCenterInput, error) {
|
|
res, err := ec.unmarshalInputUpdateTrustCenterInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateTrustCenterPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateTrustCenterPayload) graphql.Marshaler {
|
|
return ec._UpdateTrustCenterPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateTrustCenterPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateTrustCenterPayload) 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._UpdateTrustCenterPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateVendorBusinessAssociateAgreementInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorBusinessAssociateAgreementInput(ctx context.Context, v any) (types.UpdateVendorBusinessAssociateAgreementInput, error) {
|
|
res, err := ec.unmarshalInputUpdateVendorBusinessAssociateAgreementInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateVendorBusinessAssociateAgreementPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateVendorBusinessAssociateAgreementPayload) graphql.Marshaler {
|
|
return ec._UpdateVendorBusinessAssociateAgreementPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateVendorBusinessAssociateAgreementPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateVendorBusinessAssociateAgreementPayload) 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._UpdateVendorBusinessAssociateAgreementPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateVendorContactInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorContactInput(ctx context.Context, v any) (types.UpdateVendorContactInput, error) {
|
|
res, err := ec.unmarshalInputUpdateVendorContactInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateVendorContactPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorContactPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateVendorContactPayload) graphql.Marshaler {
|
|
return ec._UpdateVendorContactPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateVendorContactPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorContactPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateVendorContactPayload) 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._UpdateVendorContactPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateVendorDataPrivacyAgreementInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorDataPrivacyAgreementInput(ctx context.Context, v any) (types.UpdateVendorDataPrivacyAgreementInput, error) {
|
|
res, err := ec.unmarshalInputUpdateVendorDataPrivacyAgreementInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateVendorDataPrivacyAgreementPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateVendorDataPrivacyAgreementPayload) graphql.Marshaler {
|
|
return ec._UpdateVendorDataPrivacyAgreementPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateVendorDataPrivacyAgreementPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateVendorDataPrivacyAgreementPayload) 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._UpdateVendorDataPrivacyAgreementPayload(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) unmarshalNUpdateVendorServiceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorServiceInput(ctx context.Context, v any) (types.UpdateVendorServiceInput, error) {
|
|
res, err := ec.unmarshalInputUpdateVendorServiceInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateVendorServicePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorServicePayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateVendorServicePayload) graphql.Marshaler {
|
|
return ec._UpdateVendorServicePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateVendorServicePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorServicePayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateVendorServicePayload) 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._UpdateVendorServicePayload(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 {
|
|
_ = sel
|
|
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) unmarshalNUploadAuditReportInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadAuditReportInput(ctx context.Context, v any) (types.UploadAuditReportInput, error) {
|
|
res, err := ec.unmarshalInputUploadAuditReportInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUploadAuditReportPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadAuditReportPayload(ctx context.Context, sel ast.SelectionSet, v types.UploadAuditReportPayload) graphql.Marshaler {
|
|
return ec._UploadAuditReportPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUploadAuditReportPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadAuditReportPayload(ctx context.Context, sel ast.SelectionSet, v *types.UploadAuditReportPayload) 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._UploadAuditReportPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUploadMeasureEvidenceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadMeasureEvidenceInput(ctx context.Context, v any) (types.UploadMeasureEvidenceInput, error) {
|
|
res, err := ec.unmarshalInputUploadMeasureEvidenceInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUploadMeasureEvidencePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadMeasureEvidencePayload(ctx context.Context, sel ast.SelectionSet, v types.UploadMeasureEvidencePayload) graphql.Marshaler {
|
|
return ec._UploadMeasureEvidencePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUploadMeasureEvidencePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadMeasureEvidencePayload(ctx context.Context, sel ast.SelectionSet, v *types.UploadMeasureEvidencePayload) 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._UploadMeasureEvidencePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUploadTaskEvidenceInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadTaskEvidenceInput(ctx context.Context, v any) (types.UploadTaskEvidenceInput, error) {
|
|
res, err := ec.unmarshalInputUploadTaskEvidenceInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUploadTaskEvidencePayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadTaskEvidencePayload(ctx context.Context, sel ast.SelectionSet, v types.UploadTaskEvidencePayload) graphql.Marshaler {
|
|
return ec._UploadTaskEvidencePayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUploadTaskEvidencePayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadTaskEvidencePayload(ctx context.Context, sel ast.SelectionSet, v *types.UploadTaskEvidencePayload) 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._UploadTaskEvidencePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUploadVendorBusinessAssociateAgreementInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorBusinessAssociateAgreementInput(ctx context.Context, v any) (types.UploadVendorBusinessAssociateAgreementInput, error) {
|
|
res, err := ec.unmarshalInputUploadVendorBusinessAssociateAgreementInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUploadVendorBusinessAssociateAgreementPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, v types.UploadVendorBusinessAssociateAgreementPayload) graphql.Marshaler {
|
|
return ec._UploadVendorBusinessAssociateAgreementPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUploadVendorBusinessAssociateAgreementPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, v *types.UploadVendorBusinessAssociateAgreementPayload) 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._UploadVendorBusinessAssociateAgreementPayload(ctx, sel, v)
|
|
}
|
|
|
|
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) unmarshalNUploadVendorDataPrivacyAgreementInput2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorDataPrivacyAgreementInput(ctx context.Context, v any) (types.UploadVendorDataPrivacyAgreementInput, error) {
|
|
res, err := ec.unmarshalInputUploadVendorDataPrivacyAgreementInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUploadVendorDataPrivacyAgreementPayload2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, v types.UploadVendorDataPrivacyAgreementPayload) graphql.Marshaler {
|
|
return ec._UploadVendorDataPrivacyAgreementPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUploadVendorDataPrivacyAgreementPayload2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, v *types.UploadVendorDataPrivacyAgreementPayload) 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._UploadVendorDataPrivacyAgreementPayload(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 {
|
|
_ = sel
|
|
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) marshalNVendorBusinessAssociateAgreement2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorBusinessAssociateAgreement(ctx context.Context, sel ast.SelectionSet, v *types.VendorBusinessAssociateAgreement) 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._VendorBusinessAssociateAgreement(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNVendorCategory2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx context.Context, v any) (coredata.VendorCategory, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNVendorCategory2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorCategory2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx context.Context, sel ast.SelectionSet, v coredata.VendorCategory) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNVendorCategory2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory[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 (
|
|
unmarshalNVendorCategory2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory = map[string]coredata.VendorCategory{
|
|
"ANALYTICS": coredata.VendorCategoryAnalytics,
|
|
"CLOUD_MONITORING": coredata.VendorCategoryCloudMonitoring,
|
|
"CLOUD_PROVIDER": coredata.VendorCategoryCloudProvider,
|
|
"COLLABORATION": coredata.VendorCategoryCollaboration,
|
|
"CUSTOMER_SUPPORT": coredata.VendorCategoryCustomerSupport,
|
|
"DATA_STORAGE_AND_PROCESSING": coredata.VendorCategoryDataStorageAndProcessing,
|
|
"DOCUMENT_MANAGEMENT": coredata.VendorCategoryDocumentManagement,
|
|
"EMPLOYEE_MANAGEMENT": coredata.VendorCategoryEmployeeManagement,
|
|
"ENGINEERING": coredata.VendorCategoryEngineering,
|
|
"FINANCE": coredata.VendorCategoryFinance,
|
|
"IDENTITY_PROVIDER": coredata.VendorCategoryIdentityProvider,
|
|
"IT": coredata.VendorCategoryIT,
|
|
"MARKETING": coredata.VendorCategoryMarketing,
|
|
"OFFICE_OPERATIONS": coredata.VendorCategoryOfficeOperations,
|
|
"OTHER": coredata.VendorCategoryOther,
|
|
"PASSWORD_MANAGEMENT": coredata.VendorCategoryPasswordManagement,
|
|
"PRODUCT_AND_DESIGN": coredata.VendorCategoryProductAndDesign,
|
|
"PROFESSIONAL_SERVICES": coredata.VendorCategoryProfessionalServices,
|
|
"RECRUITING": coredata.VendorCategoryRecruiting,
|
|
"SALES": coredata.VendorCategorySales,
|
|
"SECURITY": coredata.VendorCategorySecurity,
|
|
"VERSION_CONTROL": coredata.VendorCategoryVersionControl,
|
|
}
|
|
marshalNVendorCategory2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory = map[coredata.VendorCategory]string{
|
|
coredata.VendorCategoryAnalytics: "ANALYTICS",
|
|
coredata.VendorCategoryCloudMonitoring: "CLOUD_MONITORING",
|
|
coredata.VendorCategoryCloudProvider: "CLOUD_PROVIDER",
|
|
coredata.VendorCategoryCollaboration: "COLLABORATION",
|
|
coredata.VendorCategoryCustomerSupport: "CUSTOMER_SUPPORT",
|
|
coredata.VendorCategoryDataStorageAndProcessing: "DATA_STORAGE_AND_PROCESSING",
|
|
coredata.VendorCategoryDocumentManagement: "DOCUMENT_MANAGEMENT",
|
|
coredata.VendorCategoryEmployeeManagement: "EMPLOYEE_MANAGEMENT",
|
|
coredata.VendorCategoryEngineering: "ENGINEERING",
|
|
coredata.VendorCategoryFinance: "FINANCE",
|
|
coredata.VendorCategoryIdentityProvider: "IDENTITY_PROVIDER",
|
|
coredata.VendorCategoryIT: "IT",
|
|
coredata.VendorCategoryMarketing: "MARKETING",
|
|
coredata.VendorCategoryOfficeOperations: "OFFICE_OPERATIONS",
|
|
coredata.VendorCategoryOther: "OTHER",
|
|
coredata.VendorCategoryPasswordManagement: "PASSWORD_MANAGEMENT",
|
|
coredata.VendorCategoryProductAndDesign: "PRODUCT_AND_DESIGN",
|
|
coredata.VendorCategoryProfessionalServices: "PROFESSIONAL_SERVICES",
|
|
coredata.VendorCategoryRecruiting: "RECRUITING",
|
|
coredata.VendorCategorySales: "SALES",
|
|
coredata.VendorCategorySecurity: "SECURITY",
|
|
coredata.VendorCategoryVersionControl: "VERSION_CONTROL",
|
|
}
|
|
)
|
|
|
|
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 {
|
|
_ = sel
|
|
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) marshalNVendorContact2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContact(ctx context.Context, sel ast.SelectionSet, v *types.VendorContact) 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._VendorContact(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorContactConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactConnection(ctx context.Context, sel ast.SelectionSet, v types.VendorContactConnection) graphql.Marshaler {
|
|
return ec._VendorContactConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorContactConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactConnection(ctx context.Context, sel ast.SelectionSet, v *types.VendorContactConnection) 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._VendorContactConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorContactEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.VendorContactEdge) 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.marshalNVendorContactEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactEdge(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) marshalNVendorContactEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactEdge(ctx context.Context, sel ast.SelectionSet, v *types.VendorContactEdge) 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._VendorContactEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNVendorContactOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField(ctx context.Context, v any) (coredata.VendorContactOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNVendorContactOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorContactOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.VendorContactOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNVendorContactOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField[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 (
|
|
unmarshalNVendorContactOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField = map[string]coredata.VendorContactOrderField{
|
|
"CREATED_AT": coredata.VendorContactOrderFieldCreatedAt,
|
|
"FULL_NAME": coredata.VendorContactOrderFieldFullName,
|
|
"EMAIL": coredata.VendorContactOrderFieldEmail,
|
|
}
|
|
marshalNVendorContactOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField = map[coredata.VendorContactOrderField]string{
|
|
coredata.VendorContactOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.VendorContactOrderFieldFullName: "FULL_NAME",
|
|
coredata.VendorContactOrderFieldEmail: "EMAIL",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNVendorDataPrivacyAgreement2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorDataPrivacyAgreement(ctx context.Context, sel ast.SelectionSet, v *types.VendorDataPrivacyAgreement) 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._VendorDataPrivacyAgreement(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 := unmarshalNVendorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋ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 {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNVendorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorOrderField[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 (
|
|
unmarshalNVendorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorOrderField = map[string]coredata.VendorOrderField{
|
|
"NAME": coredata.VendorOrderFieldName,
|
|
"CREATED_AT": coredata.VendorOrderFieldCreatedAt,
|
|
"UPDATED_AT": coredata.VendorOrderFieldUpdatedAt,
|
|
}
|
|
marshalNVendorOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorOrderField = map[coredata.VendorOrderField]string{
|
|
coredata.VendorOrderFieldName: "NAME",
|
|
coredata.VendorOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.VendorOrderFieldUpdatedAt: "UPDATED_AT",
|
|
}
|
|
)
|
|
|
|
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 {
|
|
_ = sel
|
|
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) marshalNVendorService2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorService(ctx context.Context, sel ast.SelectionSet, v *types.VendorService) 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._VendorService(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorServiceConnection2githubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceConnection(ctx context.Context, sel ast.SelectionSet, v types.VendorServiceConnection) graphql.Marshaler {
|
|
return ec._VendorServiceConnection(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorServiceConnection2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceConnection(ctx context.Context, sel ast.SelectionSet, v *types.VendorServiceConnection) 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._VendorServiceConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorServiceEdge2ᚕᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.VendorServiceEdge) 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.marshalNVendorServiceEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceEdge(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) marshalNVendorServiceEdge2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceEdge(ctx context.Context, sel ast.SelectionSet, v *types.VendorServiceEdge) 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._VendorServiceEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNVendorServiceOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField(ctx context.Context, v any) (coredata.VendorServiceOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNVendorServiceOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNVendorServiceOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.VendorServiceOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNVendorServiceOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField[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 (
|
|
unmarshalNVendorServiceOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField = map[string]coredata.VendorServiceOrderField{
|
|
"CREATED_AT": coredata.VendorServiceOrderFieldCreatedAt,
|
|
"NAME": coredata.VendorServiceOrderFieldName,
|
|
}
|
|
marshalNVendorServiceOrderField2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField = map[coredata.VendorServiceOrderField]string{
|
|
coredata.VendorServiceOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.VendorServiceOrderFieldName: "NAME",
|
|
}
|
|
)
|
|
|
|
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 {
|
|
_ = sel
|
|
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 {
|
|
_ = sel
|
|
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) unmarshalOAssetFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetFilter(ctx context.Context, v any) (*types.AssetFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputAssetFilter(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOAssetOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetOrderBy(ctx context.Context, v any) (*types.AssetOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputAssetOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOAssetType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType(ctx context.Context, v any) (*coredata.AssetType, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOAssetType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOAssetType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType(ctx context.Context, sel ast.SelectionSet, v *coredata.AssetType) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOAssetType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOAssetType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType = map[string]coredata.AssetType{
|
|
"PHYSICAL": coredata.AssetTypePhysical,
|
|
"VIRTUAL": coredata.AssetTypeVirtual,
|
|
}
|
|
marshalOAssetType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAssetType = map[coredata.AssetType]string{
|
|
coredata.AssetTypePhysical: "PHYSICAL",
|
|
coredata.AssetTypeVirtual: "VIRTUAL",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOAuditOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditOrderBy(ctx context.Context, v any) (*types.AuditOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputAuditOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOAuditState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState(ctx context.Context, v any) (*coredata.AuditState, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOAuditState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOAuditState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState(ctx context.Context, sel ast.SelectionSet, v *coredata.AuditState) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOAuditState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOAuditState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState = map[string]coredata.AuditState{
|
|
"NOT_STARTED": coredata.AuditStateNotStarted,
|
|
"IN_PROGRESS": coredata.AuditStateInProgress,
|
|
"COMPLETED": coredata.AuditStateCompleted,
|
|
"REJECTED": coredata.AuditStateRejected,
|
|
"OUTDATED": coredata.AuditStateOutdated,
|
|
}
|
|
marshalOAuditState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐAuditState = map[coredata.AuditState]string{
|
|
coredata.AuditStateNotStarted: "NOT_STARTED",
|
|
coredata.AuditStateInProgress: "IN_PROGRESS",
|
|
coredata.AuditStateCompleted: "COMPLETED",
|
|
coredata.AuditStateRejected: "REJECTED",
|
|
coredata.AuditStateOutdated: "OUTDATED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) {
|
|
res, err := graphql.UnmarshalBoolean(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalBoolean(v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := graphql.UnmarshalBoolean(v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalBoolean(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOComplianceRegistryFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistryFilter(ctx context.Context, v any) (*types.ComplianceRegistryFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputComplianceRegistryFilter(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOComplianceRegistryOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceRegistryOrderBy(ctx context.Context, v any) (*types.ComplianceRegistryOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputComplianceRegistryOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOComplianceRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus(ctx context.Context, v any) (*coredata.ComplianceRegistryStatus, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOComplianceRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOComplianceRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus(ctx context.Context, sel ast.SelectionSet, v *coredata.ComplianceRegistryStatus) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOComplianceRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOComplianceRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus = map[string]coredata.ComplianceRegistryStatus{
|
|
"OPEN": coredata.ComplianceRegistryStatusOpen,
|
|
"IN_PROGRESS": coredata.ComplianceRegistryStatusInProgress,
|
|
"CLOSED": coredata.ComplianceRegistryStatusClosed,
|
|
}
|
|
marshalOComplianceRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐComplianceRegistryStatus = map[coredata.ComplianceRegistryStatus]string{
|
|
coredata.ComplianceRegistryStatusOpen: "OPEN",
|
|
coredata.ComplianceRegistryStatusInProgress: "IN_PROGRESS",
|
|
coredata.ComplianceRegistryStatusClosed: "CLOSED",
|
|
}
|
|
)
|
|
|
|
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) unmarshalOContinualImprovementRegistriesOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistriesOrderBy(ctx context.Context, v any) (*types.ContinualImprovementRegistriesOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputContinualImprovementRegistriesOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOContinualImprovementRegistriesPriority2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority(ctx context.Context, v any) (*coredata.ContinualImprovementRegistriesPriority, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOContinualImprovementRegistriesPriority2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOContinualImprovementRegistriesPriority2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority(ctx context.Context, sel ast.SelectionSet, v *coredata.ContinualImprovementRegistriesPriority) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOContinualImprovementRegistriesPriority2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOContinualImprovementRegistriesPriority2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority = map[string]coredata.ContinualImprovementRegistriesPriority{
|
|
"LOW": coredata.ContinualImprovementRegistriesPriorityLow,
|
|
"MEDIUM": coredata.ContinualImprovementRegistriesPriorityMedium,
|
|
"HIGH": coredata.ContinualImprovementRegistriesPriorityHigh,
|
|
}
|
|
marshalOContinualImprovementRegistriesPriority2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesPriority = map[coredata.ContinualImprovementRegistriesPriority]string{
|
|
coredata.ContinualImprovementRegistriesPriorityLow: "LOW",
|
|
coredata.ContinualImprovementRegistriesPriorityMedium: "MEDIUM",
|
|
coredata.ContinualImprovementRegistriesPriorityHigh: "HIGH",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOContinualImprovementRegistriesStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus(ctx context.Context, v any) (*coredata.ContinualImprovementRegistriesStatus, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOContinualImprovementRegistriesStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOContinualImprovementRegistriesStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus(ctx context.Context, sel ast.SelectionSet, v *coredata.ContinualImprovementRegistriesStatus) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOContinualImprovementRegistriesStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOContinualImprovementRegistriesStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus = map[string]coredata.ContinualImprovementRegistriesStatus{
|
|
"OPEN": coredata.ContinualImprovementRegistriesStatusOpen,
|
|
"IN_PROGRESS": coredata.ContinualImprovementRegistriesStatusInProgress,
|
|
"CLOSED": coredata.ContinualImprovementRegistriesStatusClosed,
|
|
}
|
|
marshalOContinualImprovementRegistriesStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐContinualImprovementRegistriesStatus = map[coredata.ContinualImprovementRegistriesStatus]string{
|
|
coredata.ContinualImprovementRegistriesStatusOpen: "OPEN",
|
|
coredata.ContinualImprovementRegistriesStatusInProgress: "IN_PROGRESS",
|
|
coredata.ContinualImprovementRegistriesStatusClosed: "CLOSED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOContinualImprovementRegistryFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementRegistryFilter(ctx context.Context, v any) (*types.ContinualImprovementRegistryFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputContinualImprovementRegistryFilter(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOControlFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter(ctx context.Context, v any) (*types.ControlFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputControlFilter(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) unmarshalOControlStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus(ctx context.Context, v any) (*coredata.ControlStatus, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOControlStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOControlStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus(ctx context.Context, sel ast.SelectionSet, v *coredata.ControlStatus) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOControlStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOControlStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus = map[string]coredata.ControlStatus{
|
|
"INCLUDED": coredata.ControlStatusIncluded,
|
|
"EXCLUDED": coredata.ControlStatusExcluded,
|
|
}
|
|
marshalOControlStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐControlStatus = map[coredata.ControlStatus]string{
|
|
coredata.ControlStatusIncluded: "INCLUDED",
|
|
coredata.ControlStatusExcluded: "EXCLUDED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOCriticityLevel2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel(ctx context.Context, v any) (*coredata.CriticityLevel, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOCriticityLevel2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOCriticityLevel2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel(ctx context.Context, sel ast.SelectionSet, v *coredata.CriticityLevel) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOCriticityLevel2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOCriticityLevel2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel = map[string]coredata.CriticityLevel{
|
|
"LOW": coredata.CriticityLevelLow,
|
|
"MEDIUM": coredata.CriticityLevelMedium,
|
|
"HIGH": coredata.CriticityLevelHigh,
|
|
}
|
|
marshalOCriticityLevel2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐCriticityLevel = map[coredata.CriticityLevel]string{
|
|
coredata.CriticityLevelLow: "LOW",
|
|
coredata.CriticityLevelMedium: "MEDIUM",
|
|
coredata.CriticityLevelHigh: "HIGH",
|
|
}
|
|
)
|
|
|
|
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 := cursor.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
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := cursor.MarshalCursorKeyScalar(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalODataClassification2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification(ctx context.Context, v any) (*coredata.DataClassification, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalODataClassification2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalODataClassification2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification(ctx context.Context, sel ast.SelectionSet, v *coredata.DataClassification) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalODataClassification2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalODataClassification2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification = map[string]coredata.DataClassification{
|
|
"PUBLIC": coredata.DataClassificationPublic,
|
|
"INTERNAL": coredata.DataClassificationInternal,
|
|
"CONFIDENTIAL": coredata.DataClassificationConfidential,
|
|
"SECRET": coredata.DataClassificationSecret,
|
|
}
|
|
marshalODataClassification2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDataClassification = map[coredata.DataClassification]string{
|
|
coredata.DataClassificationPublic: "PUBLIC",
|
|
coredata.DataClassificationInternal: "INTERNAL",
|
|
coredata.DataClassificationConfidential: "CONFIDENTIAL",
|
|
coredata.DataClassificationSecret: "SECRET",
|
|
}
|
|
)
|
|
|
|
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
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalTime(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalODatumFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumFilter(ctx context.Context, v any) (*types.DatumFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputDatumFilter(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalODatumOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumOrderBy(ctx context.Context, v any) (*types.DatumOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputDatumOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalODocumentFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentFilter(ctx context.Context, v any) (*types.DocumentFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputDocumentFilter(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalODocumentOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentOrderBy(ctx context.Context, v any) (*types.DocumentOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputDocumentOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalODocumentStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus(ctx context.Context, v any) (*coredata.DocumentStatus, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalODocumentStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalODocumentStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus(ctx context.Context, sel ast.SelectionSet, v *coredata.DocumentStatus) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalODocumentStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalODocumentStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus = map[string]coredata.DocumentStatus{
|
|
"DRAFT": coredata.DocumentStatusDraft,
|
|
"PUBLISHED": coredata.DocumentStatusPublished,
|
|
}
|
|
marshalODocumentStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentStatus = map[coredata.DocumentStatus]string{
|
|
coredata.DocumentStatusDraft: "DRAFT",
|
|
coredata.DocumentStatusPublished: "PUBLISHED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalODocumentType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx context.Context, v any) (*coredata.DocumentType, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalODocumentType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalODocumentType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx context.Context, sel ast.SelectionSet, v *coredata.DocumentType) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalODocumentType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalODocumentType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType = map[string]coredata.DocumentType{
|
|
"OTHER": coredata.DocumentTypeOther,
|
|
"ISMS": coredata.DocumentTypeISMS,
|
|
"POLICY": coredata.DocumentTypePolicy,
|
|
}
|
|
marshalODocumentType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType = map[coredata.DocumentType]string{
|
|
coredata.DocumentTypeOther: "OTHER",
|
|
coredata.DocumentTypeISMS: "ISMS",
|
|
coredata.DocumentTypePolicy: "POLICY",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalODocumentVersionFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionFilter(ctx context.Context, v any) (*types.DocumentVersionFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputDocumentVersionFilter(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalODocumentVersionOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionOrderBy(ctx context.Context, v any) (*types.DocumentVersionOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputDocumentVersionOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalODocumentVersionSignatureOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureOrder(ctx context.Context, v any) (*types.DocumentVersionSignatureOrder, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputDocumentVersionSignatureOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
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
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
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
|
|
}
|
|
var vSlice []any
|
|
vSlice = graphql.CoerceList(v)
|
|
var err error
|
|
res := make([]gid.GID, len(vSlice))
|
|
for i := range vSlice {
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
|
|
res[i], err = ec.unmarshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, vSlice[i])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
return res, nil
|
|
}
|
|
|
|
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
|
|
}
|
|
ret := make(graphql.Array, len(v))
|
|
for i := range v {
|
|
ret[i] = ec.marshalNID2githubᚗcomᚋgetproboᚋproboᚋpkgᚋgidᚐGID(ctx, sel, v[i])
|
|
}
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
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 := gid1.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
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := gid1.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
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalInt(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) marshalOMeasure2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure(ctx context.Context, sel ast.SelectionSet, v *types.Measure) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Measure(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOMeasureFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureFilter(ctx context.Context, v any) (*types.MeasureFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputMeasureFilter(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOMeasureOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureOrderBy(ctx context.Context, v any) (*types.MeasureOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputMeasureOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOMeasureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState(ctx context.Context, v any) (*coredata.MeasureState, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOMeasureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOMeasureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState(ctx context.Context, sel ast.SelectionSet, v *coredata.MeasureState) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOMeasureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOMeasureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState = map[string]coredata.MeasureState{
|
|
"NOT_STARTED": coredata.MeasureStateNotStarted,
|
|
"IN_PROGRESS": coredata.MeasureStateInProgress,
|
|
"NOT_APPLICABLE": coredata.MeasureStateNotApplicable,
|
|
"IMPLEMENTED": coredata.MeasureStateImplemented,
|
|
}
|
|
marshalOMeasureState2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐMeasureState = map[coredata.MeasureState]string{
|
|
coredata.MeasureStateNotStarted: "NOT_STARTED",
|
|
coredata.MeasureStateInProgress: "IN_PROGRESS",
|
|
coredata.MeasureStateNotApplicable: "NOT_APPLICABLE",
|
|
coredata.MeasureStateImplemented: "IMPLEMENTED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalONonconformityRegistryFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistryFilter(ctx context.Context, v any) (*types.NonconformityRegistryFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputNonconformityRegistryFilter(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalONonconformityRegistryOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityRegistryOrderBy(ctx context.Context, v any) (*types.NonconformityRegistryOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputNonconformityRegistryOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalONonconformityRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus(ctx context.Context, v any) (*coredata.NonconformityRegistryStatus, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalONonconformityRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalONonconformityRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus(ctx context.Context, sel ast.SelectionSet, v *coredata.NonconformityRegistryStatus) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalONonconformityRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalONonconformityRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus = map[string]coredata.NonconformityRegistryStatus{
|
|
"OPEN": coredata.NonconformityRegistryStatusOpen,
|
|
"IN_PROGRESS": coredata.NonconformityRegistryStatusInProgress,
|
|
"CLOSED": coredata.NonconformityRegistryStatusClosed,
|
|
}
|
|
marshalONonconformityRegistryStatus2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐNonconformityRegistryStatus = map[coredata.NonconformityRegistryStatus]string{
|
|
coredata.NonconformityRegistryStatusOpen: "OPEN",
|
|
coredata.NonconformityRegistryStatusInProgress: "IN_PROGRESS",
|
|
coredata.NonconformityRegistryStatusClosed: "CLOSED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOOrganizationFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationFilter(ctx context.Context, v any) (*types.OrganizationFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputOrganizationFilter(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
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) unmarshalOPeopleFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPeopleFilter(ctx context.Context, v any) (*types.PeopleFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputPeopleFilter(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
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
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
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) unmarshalOProcessingActivityRegistryDataProtectionImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment(ctx context.Context, v any) (*coredata.ProcessingActivityRegistryDataProtectionImpactAssessment, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOProcessingActivityRegistryDataProtectionImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOProcessingActivityRegistryDataProtectionImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment(ctx context.Context, sel ast.SelectionSet, v *coredata.ProcessingActivityRegistryDataProtectionImpactAssessment) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOProcessingActivityRegistryDataProtectionImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOProcessingActivityRegistryDataProtectionImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment = map[string]coredata.ProcessingActivityRegistryDataProtectionImpactAssessment{
|
|
"NEEDED": coredata.ProcessingActivityRegistryDataProtectionImpactAssessmentNeeded,
|
|
"NOT_NEEDED": coredata.ProcessingActivityRegistryDataProtectionImpactAssessmentNotNeeded,
|
|
}
|
|
marshalOProcessingActivityRegistryDataProtectionImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryDataProtectionImpactAssessment = map[coredata.ProcessingActivityRegistryDataProtectionImpactAssessment]string{
|
|
coredata.ProcessingActivityRegistryDataProtectionImpactAssessmentNeeded: "NEEDED",
|
|
coredata.ProcessingActivityRegistryDataProtectionImpactAssessmentNotNeeded: "NOT_NEEDED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOProcessingActivityRegistryFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistryFilter(ctx context.Context, v any) (*types.ProcessingActivityRegistryFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputProcessingActivityRegistryFilter(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOProcessingActivityRegistryLawfulBasis2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis(ctx context.Context, v any) (*coredata.ProcessingActivityRegistryLawfulBasis, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOProcessingActivityRegistryLawfulBasis2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOProcessingActivityRegistryLawfulBasis2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis(ctx context.Context, sel ast.SelectionSet, v *coredata.ProcessingActivityRegistryLawfulBasis) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOProcessingActivityRegistryLawfulBasis2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOProcessingActivityRegistryLawfulBasis2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis = map[string]coredata.ProcessingActivityRegistryLawfulBasis{
|
|
"LEGITIMATE_INTEREST": coredata.ProcessingActivityRegistryLawfulBasisLegitimateInterest,
|
|
"CONSENT": coredata.ProcessingActivityRegistryLawfulBasisConsent,
|
|
"CONTRACTUAL_NECESSITY": coredata.ProcessingActivityRegistryLawfulBasisContractualNecessity,
|
|
"LEGAL_OBLIGATION": coredata.ProcessingActivityRegistryLawfulBasisLegalObligation,
|
|
"VITAL_INTERESTS": coredata.ProcessingActivityRegistryLawfulBasisVitalInterests,
|
|
"PUBLIC_TASK": coredata.ProcessingActivityRegistryLawfulBasisPublicTask,
|
|
}
|
|
marshalOProcessingActivityRegistryLawfulBasis2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryLawfulBasis = map[coredata.ProcessingActivityRegistryLawfulBasis]string{
|
|
coredata.ProcessingActivityRegistryLawfulBasisLegitimateInterest: "LEGITIMATE_INTEREST",
|
|
coredata.ProcessingActivityRegistryLawfulBasisConsent: "CONSENT",
|
|
coredata.ProcessingActivityRegistryLawfulBasisContractualNecessity: "CONTRACTUAL_NECESSITY",
|
|
coredata.ProcessingActivityRegistryLawfulBasisLegalObligation: "LEGAL_OBLIGATION",
|
|
coredata.ProcessingActivityRegistryLawfulBasisVitalInterests: "VITAL_INTERESTS",
|
|
coredata.ProcessingActivityRegistryLawfulBasisPublicTask: "PUBLIC_TASK",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOProcessingActivityRegistryOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityRegistryOrderBy(ctx context.Context, v any) (*types.ProcessingActivityRegistryOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputProcessingActivityRegistryOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOProcessingActivityRegistrySpecialOrCriminalData2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData(ctx context.Context, v any) (*coredata.ProcessingActivityRegistrySpecialOrCriminalData, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOProcessingActivityRegistrySpecialOrCriminalData2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOProcessingActivityRegistrySpecialOrCriminalData2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData(ctx context.Context, sel ast.SelectionSet, v *coredata.ProcessingActivityRegistrySpecialOrCriminalData) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOProcessingActivityRegistrySpecialOrCriminalData2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOProcessingActivityRegistrySpecialOrCriminalData2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData = map[string]coredata.ProcessingActivityRegistrySpecialOrCriminalData{
|
|
"YES": coredata.ProcessingActivityRegistrySpecialOrCriminalDataYes,
|
|
"NO": coredata.ProcessingActivityRegistrySpecialOrCriminalDataNo,
|
|
"POSSIBLE": coredata.ProcessingActivityRegistrySpecialOrCriminalDataPossible,
|
|
}
|
|
marshalOProcessingActivityRegistrySpecialOrCriminalData2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistrySpecialOrCriminalData = map[coredata.ProcessingActivityRegistrySpecialOrCriminalData]string{
|
|
coredata.ProcessingActivityRegistrySpecialOrCriminalDataYes: "YES",
|
|
coredata.ProcessingActivityRegistrySpecialOrCriminalDataNo: "NO",
|
|
coredata.ProcessingActivityRegistrySpecialOrCriminalDataPossible: "POSSIBLE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOProcessingActivityRegistryTransferImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment(ctx context.Context, v any) (*coredata.ProcessingActivityRegistryTransferImpactAssessment, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOProcessingActivityRegistryTransferImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOProcessingActivityRegistryTransferImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment(ctx context.Context, sel ast.SelectionSet, v *coredata.ProcessingActivityRegistryTransferImpactAssessment) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOProcessingActivityRegistryTransferImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOProcessingActivityRegistryTransferImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment = map[string]coredata.ProcessingActivityRegistryTransferImpactAssessment{
|
|
"NEEDED": coredata.ProcessingActivityRegistryTransferImpactAssessmentNeeded,
|
|
"NOT_NEEDED": coredata.ProcessingActivityRegistryTransferImpactAssessmentNotNeeded,
|
|
}
|
|
marshalOProcessingActivityRegistryTransferImpactAssessment2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferImpactAssessment = map[coredata.ProcessingActivityRegistryTransferImpactAssessment]string{
|
|
coredata.ProcessingActivityRegistryTransferImpactAssessmentNeeded: "NEEDED",
|
|
coredata.ProcessingActivityRegistryTransferImpactAssessmentNotNeeded: "NOT_NEEDED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalOProcessingActivityRegistryTransferSafeguards2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferSafeguards(ctx context.Context, v any) (*coredata.ProcessingActivityRegistryTransferSafeguards, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOProcessingActivityRegistryTransferSafeguards2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferSafeguards[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOProcessingActivityRegistryTransferSafeguards2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferSafeguards(ctx context.Context, sel ast.SelectionSet, v *coredata.ProcessingActivityRegistryTransferSafeguards) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOProcessingActivityRegistryTransferSafeguards2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferSafeguards[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOProcessingActivityRegistryTransferSafeguards2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferSafeguards = map[string]coredata.ProcessingActivityRegistryTransferSafeguards{
|
|
"STANDARD_CONTRACTUAL_CLAUSES": coredata.ProcessingActivityRegistryTransferSafeguardsStandardContractualClauses,
|
|
"BINDING_CORPORATE_RULES": coredata.ProcessingActivityRegistryTransferSafeguardsBindingCorporateRules,
|
|
"ADEQUACY_DECISION": coredata.ProcessingActivityRegistryTransferSafeguardsAdequacyDecision,
|
|
"DEROGATIONS": coredata.ProcessingActivityRegistryTransferSafeguardsDerogations,
|
|
"CODES_OF_CONDUCT": coredata.ProcessingActivityRegistryTransferSafeguardsCodesOfConduct,
|
|
"CERTIFICATION_MECHANISMS": coredata.ProcessingActivityRegistryTransferSafeguardsCertificationMechanisms,
|
|
}
|
|
marshalOProcessingActivityRegistryTransferSafeguards2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐProcessingActivityRegistryTransferSafeguards = map[coredata.ProcessingActivityRegistryTransferSafeguards]string{
|
|
coredata.ProcessingActivityRegistryTransferSafeguardsStandardContractualClauses: "STANDARD_CONTRACTUAL_CLAUSES",
|
|
coredata.ProcessingActivityRegistryTransferSafeguardsBindingCorporateRules: "BINDING_CORPORATE_RULES",
|
|
coredata.ProcessingActivityRegistryTransferSafeguardsAdequacyDecision: "ADEQUACY_DECISION",
|
|
coredata.ProcessingActivityRegistryTransferSafeguardsDerogations: "DEROGATIONS",
|
|
coredata.ProcessingActivityRegistryTransferSafeguardsCodesOfConduct: "CODES_OF_CONDUCT",
|
|
coredata.ProcessingActivityRegistryTransferSafeguardsCertificationMechanisms: "CERTIFICATION_MECHANISMS",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalOReport2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐReport(ctx context.Context, sel ast.SelectionSet, v *types.Report) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Report(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalORiskFilter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskFilter(ctx context.Context, v any) (*types.RiskFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputRiskFilter(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
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
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
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) unmarshalOSnapshotOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotOrderBy(ctx context.Context, v any) (*types.SnapshotOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputSnapshotOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
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
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) marshalOTask2ᚖ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 {
|
|
return graphql.Null
|
|
}
|
|
return ec._Task(ctx, sel, v)
|
|
}
|
|
|
|
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
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
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) marshalOTrustCenter2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenter(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenter) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._TrustCenter(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOTrustCenterAccessOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy(ctx context.Context, v any) (*types.OrderBy[coredata.TrustCenterAccessOrderField], error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputTrustCenterAccessOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
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
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
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) marshalOVendorBusinessAssociateAgreement2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorBusinessAssociateAgreement(ctx context.Context, sel ast.SelectionSet, v *types.VendorBusinessAssociateAgreement) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorBusinessAssociateAgreement(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOVendorCategory2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx context.Context, v any) (*coredata.VendorCategory, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOVendorCategory2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOVendorCategory2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx context.Context, sel ast.SelectionSet, v *coredata.VendorCategory) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOVendorCategory2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOVendorCategory2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory = map[string]coredata.VendorCategory{
|
|
"ANALYTICS": coredata.VendorCategoryAnalytics,
|
|
"CLOUD_MONITORING": coredata.VendorCategoryCloudMonitoring,
|
|
"CLOUD_PROVIDER": coredata.VendorCategoryCloudProvider,
|
|
"COLLABORATION": coredata.VendorCategoryCollaboration,
|
|
"CUSTOMER_SUPPORT": coredata.VendorCategoryCustomerSupport,
|
|
"DATA_STORAGE_AND_PROCESSING": coredata.VendorCategoryDataStorageAndProcessing,
|
|
"DOCUMENT_MANAGEMENT": coredata.VendorCategoryDocumentManagement,
|
|
"EMPLOYEE_MANAGEMENT": coredata.VendorCategoryEmployeeManagement,
|
|
"ENGINEERING": coredata.VendorCategoryEngineering,
|
|
"FINANCE": coredata.VendorCategoryFinance,
|
|
"IDENTITY_PROVIDER": coredata.VendorCategoryIdentityProvider,
|
|
"IT": coredata.VendorCategoryIT,
|
|
"MARKETING": coredata.VendorCategoryMarketing,
|
|
"OFFICE_OPERATIONS": coredata.VendorCategoryOfficeOperations,
|
|
"OTHER": coredata.VendorCategoryOther,
|
|
"PASSWORD_MANAGEMENT": coredata.VendorCategoryPasswordManagement,
|
|
"PRODUCT_AND_DESIGN": coredata.VendorCategoryProductAndDesign,
|
|
"PROFESSIONAL_SERVICES": coredata.VendorCategoryProfessionalServices,
|
|
"RECRUITING": coredata.VendorCategoryRecruiting,
|
|
"SALES": coredata.VendorCategorySales,
|
|
"SECURITY": coredata.VendorCategorySecurity,
|
|
"VERSION_CONTROL": coredata.VendorCategoryVersionControl,
|
|
}
|
|
marshalOVendorCategory2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐVendorCategory = map[coredata.VendorCategory]string{
|
|
coredata.VendorCategoryAnalytics: "ANALYTICS",
|
|
coredata.VendorCategoryCloudMonitoring: "CLOUD_MONITORING",
|
|
coredata.VendorCategoryCloudProvider: "CLOUD_PROVIDER",
|
|
coredata.VendorCategoryCollaboration: "COLLABORATION",
|
|
coredata.VendorCategoryCustomerSupport: "CUSTOMER_SUPPORT",
|
|
coredata.VendorCategoryDataStorageAndProcessing: "DATA_STORAGE_AND_PROCESSING",
|
|
coredata.VendorCategoryDocumentManagement: "DOCUMENT_MANAGEMENT",
|
|
coredata.VendorCategoryEmployeeManagement: "EMPLOYEE_MANAGEMENT",
|
|
coredata.VendorCategoryEngineering: "ENGINEERING",
|
|
coredata.VendorCategoryFinance: "FINANCE",
|
|
coredata.VendorCategoryIdentityProvider: "IDENTITY_PROVIDER",
|
|
coredata.VendorCategoryIT: "IT",
|
|
coredata.VendorCategoryMarketing: "MARKETING",
|
|
coredata.VendorCategoryOfficeOperations: "OFFICE_OPERATIONS",
|
|
coredata.VendorCategoryOther: "OTHER",
|
|
coredata.VendorCategoryPasswordManagement: "PASSWORD_MANAGEMENT",
|
|
coredata.VendorCategoryProductAndDesign: "PRODUCT_AND_DESIGN",
|
|
coredata.VendorCategoryProfessionalServices: "PROFESSIONAL_SERVICES",
|
|
coredata.VendorCategoryRecruiting: "RECRUITING",
|
|
coredata.VendorCategorySales: "SALES",
|
|
coredata.VendorCategorySecurity: "SECURITY",
|
|
coredata.VendorCategoryVersionControl: "VERSION_CONTROL",
|
|
}
|
|
)
|
|
|
|
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) unmarshalOVendorContactOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactOrderBy(ctx context.Context, v any) (*types.VendorContactOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputVendorContactOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOVendorDataPrivacyAgreement2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorDataPrivacyAgreement(ctx context.Context, sel ast.SelectionSet, v *types.VendorDataPrivacyAgreement) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._VendorDataPrivacyAgreement(ctx, sel, v)
|
|
}
|
|
|
|
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) unmarshalOVendorServiceOrder2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceOrderBy(ctx context.Context, v any) (*types.VendorServiceOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputVendorServiceOrder(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 *****************************
|