@@ -124,6 +124,7 @@ type ComplexityRoot struct {
|
||||
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
|
||||
@@ -1575,6 +1576,13 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin
|
||||
|
||||
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
|
||||
@@ -7472,6 +7480,7 @@ type Risk implements Node {
|
||||
|
||||
type Audit implements Node {
|
||||
id: ID!
|
||||
name: String
|
||||
organization: Organization! @goField(forceResolver: true)
|
||||
framework: Framework! @goField(forceResolver: true)
|
||||
validFrom: Datetime
|
||||
@@ -8403,6 +8412,7 @@ input DeleteControlInput {
|
||||
input CreateAuditInput {
|
||||
organizationId: ID!
|
||||
frameworkId: ID!
|
||||
name: String
|
||||
validFrom: Datetime
|
||||
validUntil: Datetime
|
||||
state: AuditState
|
||||
@@ -8410,6 +8420,7 @@ input CreateAuditInput {
|
||||
|
||||
input UpdateAuditInput {
|
||||
id: ID!
|
||||
name: String
|
||||
validFrom: Datetime
|
||||
validUntil: Datetime
|
||||
state: AuditState
|
||||
@@ -15896,6 +15907,47 @@ func (ec *executionContext) fieldContext_Audit_id(_ context.Context, field graph
|
||||
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 {
|
||||
@@ -16631,6 +16683,8 @@ func (ec *executionContext) fieldContext_AuditEdge_node(_ context.Context, field
|
||||
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":
|
||||
@@ -20231,6 +20285,8 @@ func (ec *executionContext) fieldContext_DeleteAuditReportPayload_audit(_ contex
|
||||
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":
|
||||
@@ -38064,6 +38120,8 @@ func (ec *executionContext) fieldContext_UpdateAuditPayload_audit(_ context.Cont
|
||||
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":
|
||||
@@ -39188,6 +39246,8 @@ func (ec *executionContext) fieldContext_UploadAuditReportPayload_audit(_ contex
|
||||
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":
|
||||
@@ -47095,7 +47155,7 @@ func (ec *executionContext) unmarshalInputCreateAuditInput(ctx context.Context,
|
||||
asMap[k] = v
|
||||
}
|
||||
|
||||
fieldsInOrder := [...]string{"organizationId", "frameworkId", "validFrom", "validUntil", "state"}
|
||||
fieldsInOrder := [...]string{"organizationId", "frameworkId", "name", "validFrom", "validUntil", "state"}
|
||||
for _, k := range fieldsInOrder {
|
||||
v, ok := asMap[k]
|
||||
if !ok {
|
||||
@@ -47116,6 +47176,13 @@ func (ec *executionContext) unmarshalInputCreateAuditInput(ctx context.Context,
|
||||
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)
|
||||
@@ -50007,7 +50074,7 @@ func (ec *executionContext) unmarshalInputUpdateAuditInput(ctx context.Context,
|
||||
asMap[k] = v
|
||||
}
|
||||
|
||||
fieldsInOrder := [...]string{"id", "validFrom", "validUntil", "state", "showOnTrustCenter"}
|
||||
fieldsInOrder := [...]string{"id", "name", "validFrom", "validUntil", "state", "showOnTrustCenter"}
|
||||
for _, k := range fieldsInOrder {
|
||||
v, ok := asMap[k]
|
||||
if !ok {
|
||||
@@ -50021,6 +50088,13 @@ func (ec *executionContext) unmarshalInputUpdateAuditInput(ctx context.Context,
|
||||
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)
|
||||
@@ -52045,6 +52119,8 @@ func (ec *executionContext) _Audit(ctx context.Context, sel ast.SelectionSet, ob
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user